From 52a7af82305c058ff2bc02ac519a62520f665a83 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 24 Jan 2007 23:38:26 +0000 Subject: [PATCH] ITS#4815 get_option for TLS Cipher Suite was not implemented --- libraries/libldap/tls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index f0ebe92248..2d14794a19 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -1299,6 +1299,10 @@ ldap_pvt_tls_get_option( LDAP *ld, int option, void *arg ) *(int *)arg = lo->ldo_tls_crlcheck; break; #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: *(char **)arg = tls_opt_randfile ? LDAP_STRDUP( tls_opt_randfile ) : NULL;