mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Condition ldap_start_tls on HAVE_TLS.
This commit is contained in:
parent
041c1545e8
commit
268dd9beaf
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue