mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 07:30:57 -05:00
fix build without TLS
This commit is contained in:
parent
afabf44493
commit
b73915d36f
1 changed files with 5 additions and 0 deletions
|
|
@ -1255,12 +1255,14 @@ slap_tls_get_config( LDAP *ld, int opt, char **val )
|
|||
|
||||
*val = NULL;
|
||||
switch( opt ) {
|
||||
#ifdef HAVE_TLS
|
||||
case LDAP_OPT_X_TLS_CRLCHECK:
|
||||
keys = crlkeys;
|
||||
break;
|
||||
case LDAP_OPT_X_TLS_REQUIRE_CERT:
|
||||
keys = vfykeys;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -1289,7 +1291,10 @@ bindconf_tls_parse( const char *word, slap_bindconf *bc )
|
|||
int
|
||||
bindconf_tls_unparse( slap_bindconf *bc, struct berval *bv )
|
||||
{
|
||||
#ifdef HAVE_TLS
|
||||
return slap_cf_aux_table_unparse( bc, bv, aux_TLS );
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Reference in a new issue