ITS#4815 get_option for TLS Cipher Suite was not implemented

This commit is contained in:
Howard Chu 2007-01-24 23:38:26 +00:00
parent 5856d39289
commit 52a7af8230

View File

@ -1299,6 +1299,10 @@ ldap_pvt_tls_get_option( LDAP *ld, int option, void *arg )
*(int *)arg = lo->ldo_tls_crlcheck; *(int *)arg = lo->ldo_tls_crlcheck;
break; break;
#endif #endif
case LDAP_OPT_X_TLS_CIPHER_SUITE:
*(char **)arg = lo->ldo_tls_ciphersuite ?
LDAP_STRDUP( lo->ldo_tls_ciphersuite ) : NULL;
break;
case LDAP_OPT_X_TLS_RANDOM_FILE: case LDAP_OPT_X_TLS_RANDOM_FILE:
*(char **)arg = tls_opt_randfile ? *(char **)arg = tls_opt_randfile ?
LDAP_STRDUP( tls_opt_randfile ) : NULL; LDAP_STRDUP( tls_opt_randfile ) : NULL;