diff --git a/sdk-api-src/content/winldap/nc-winldap-verifyservercert.md b/sdk-api-src/content/winldap/nc-winldap-verifyservercert.md index 437767f3bce..c8ec1bc8a51 100644 --- a/sdk-api-src/content/winldap/nc-winldap-verifyservercert.md +++ b/sdk-api-src/content/winldap/nc-winldap-verifyservercert.md @@ -83,9 +83,12 @@ conn, LDAP_OPT_SERVER_CERTIFICATE, &CertRoutine The server calls VERIFYSERVERCERT after the secure connection has been established. The server's certificate context is supplied for examination by the client. + +Even though in some old SDKs VERIFYSERVERCERT is declared as receiving a PCCERT_CONTEXT, it in fact receives a PCCERT_CONTEXT*. + An application should use the ppServerCert parameter as: PCCERT_CONTEXT* ppServerCert = (PCCERT_CONTEXT*)pServerCert; -Even though VERIFYSERVERCERT is declared as receiving a PCCERT_CONTEXT, it in fact receives a PCCERT_CONTEXT*. The ppServerCert can be used to verify the certificate. CertFreeCertificateContext should be called before this function returns. The call to this function should be made as follows: +The ppServerCert can be used to verify the certificate. CertFreeCertificateContext should be called before this function returns. The call to this function should be made as follows: ```cpp