]> git.sur5r.net Git - openldap/commitdiff
ITS#4815 get_option for TLS Cipher Suite was not implemented
authorHoward Chu <hyc@openldap.org>
Wed, 24 Jan 2007 23:38:26 +0000 (23:38 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 24 Jan 2007 23:38:26 +0000 (23:38 +0000)
libraries/libldap/tls.c

index f0ebe92248f2671fb4fe1da583d94390892353b5..2d14794a19457567c03405a82b58e9e177034062 100644 (file)
@@ -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;