Commit 3fb35f90 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Fix erroneous comment

Remove bad ifdef
parent 8ea824dc
...@@ -649,12 +649,10 @@ ldap_pvt_tls_get_option( LDAP *ld, int option, void *arg ) ...@@ -649,12 +649,10 @@ ldap_pvt_tls_get_option( LDAP *ld, int option, void *arg )
case LDAP_OPT_X_TLS_PROTOCOL_MIN: case LDAP_OPT_X_TLS_PROTOCOL_MIN:
*(int *)arg = lo->ldo_tls_protocol_min; *(int *)arg = lo->ldo_tls_protocol_min;
break; break;
#ifdef HAVE_OPENSSL case LDAP_OPT_X_TLS_RANDOM_FILE:
case LDAP_OPT_X_TLS_RANDOM_FILE: /* OpenSSL only */
*(char **)arg = lo->ldo_tls_randfile ? *(char **)arg = lo->ldo_tls_randfile ?
LDAP_STRDUP( lo->ldo_tls_randfile ) : NULL; LDAP_STRDUP( lo->ldo_tls_randfile ) : NULL;
break; break;
#endif
case LDAP_OPT_X_TLS_SSL_CTX: { case LDAP_OPT_X_TLS_SSL_CTX: {
void *retval = 0; void *retval = 0;
if ( ld != NULL ) { if ( ld != NULL ) {
...@@ -788,14 +786,12 @@ ldap_pvt_tls_set_option( LDAP *ld, int option, void *arg ) ...@@ -788,14 +786,12 @@ ldap_pvt_tls_set_option( LDAP *ld, int option, void *arg )
if ( !arg ) return -1; if ( !arg ) return -1;
lo->ldo_tls_protocol_min = *(int *)arg; lo->ldo_tls_protocol_min = *(int *)arg;
return 0; return 0;
#ifdef HAVE_OPENSSL case LDAP_OPT_X_TLS_RANDOM_FILE:
case LDAP_OPT_X_TLS_RANDOM_FILE: /* OpenSSL only */
if ( ld != NULL ) if ( ld != NULL )
return -1; return -1;
if ( lo->ldo_tls_randfile ) LDAP_FREE (lo->ldo_tls_randfile ); if ( lo->ldo_tls_randfile ) LDAP_FREE (lo->ldo_tls_randfile );
lo->ldo_tls_randfile = arg ? LDAP_STRDUP( (char *) arg ) : NULL; lo->ldo_tls_randfile = arg ? LDAP_STRDUP( (char *) arg ) : NULL;
break; break;
#endif
case LDAP_OPT_X_TLS_NEWCTX: case LDAP_OPT_X_TLS_NEWCTX:
if ( !arg ) return -1; if ( !arg ) return -1;
if ( lo->ldo_tls_ctx ) if ( lo->ldo_tls_ctx )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment