mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-18 15:20:35 +08:00
Condition ldap_start_tls on HAVE_TLS.
This commit is contained in:
parent
041c1545e8
commit
268dd9beaf
@ -230,6 +230,7 @@ ldap_initialize( LDAP **ldp, LDAP_CONST char *url )
|
||||
int
|
||||
ldap_start_tls ( LDAP *ld )
|
||||
{
|
||||
#ifdef HAVE_TLS
|
||||
LDAPConn *lc;
|
||||
int rc;
|
||||
char *rspoid;
|
||||
@ -253,6 +254,9 @@ ldap_start_tls ( LDAP *ld )
|
||||
return rc;
|
||||
}
|
||||
return LDAP_SUCCESS;
|
||||
#else
|
||||
return LDAP_NOT_SUPPORTED;
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
x
Reference in New Issue
Block a user