How to use SecPkgContext_ConnectionInfo to set protocol to tls1.2?

  • Thread starter Thread starter ritu varkey
  • Start date Start date
R

ritu varkey

Guest
I tried setting the following LDAP option:

sslreturnCode = ldap_set_option(ldap, LDAP_OPT_SSL_INFO, (void *)&sslinfo);

I initialized SecPkgContext_ConnectionInfo with the following:

sslInfo.dwProtocol = SP_PROT_TLS1_2;
sslInfo.aiCipher = CALG_AES_256;
sslInfo.dwCipherStrength = 256;
sslInfo.aiHash = CALG_SHA;
sslInfo.dwHashStrength = 160;
sslInfo.aiExch = CALG_RSA_KEYX;
sslInfo.dwExchStrength = 256;

But ldap_set_option returns LDAP_PARAM_ERROR 89.

What am I doing wrong?Thanks in advance.

Continue reading...
 
Back
Top