mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
client/server controls added to ldap_start_tls().
This commit is contained in:
parent
01ab716e8a
commit
e0e7e9842e
@ -995,7 +995,9 @@ ldap_initialize LDAP_P((
|
||||
|
||||
LIBLDAP_F( int )
|
||||
ldap_start_tls LDAP_P((
|
||||
LDAP *ld ));
|
||||
LDAP *ld,
|
||||
LDAPControl **serverctrls,
|
||||
LDAPControl **clientctrls ));
|
||||
|
||||
/*
|
||||
* in messages.c:
|
||||
|
@ -228,7 +228,9 @@ ldap_initialize( LDAP **ldp, LDAP_CONST char *url )
|
||||
}
|
||||
|
||||
int
|
||||
ldap_start_tls ( LDAP *ld )
|
||||
ldap_start_tls ( LDAP *ld,
|
||||
LDAPControl **serverctrls,
|
||||
LDAPControl **clientctrls )
|
||||
{
|
||||
#ifdef HAVE_TLS
|
||||
LDAPConn *lc;
|
||||
@ -246,7 +248,7 @@ ldap_start_tls ( LDAP *ld )
|
||||
if (ldap_pvt_tls_inplace(lc->lconn_sb) != 0)
|
||||
return LDAP_OPERATIONS_ERROR;
|
||||
rc = ldap_extended_operation_s(ld, LDAP_EXOP_START_TLS,
|
||||
NULL, NULL, NULL, &rspoid, &rspdata);
|
||||
NULL, serverctrls, clientctrls, &rspoid, &rspdata);
|
||||
if (rc != LDAP_SUCCESS)
|
||||
return rc;
|
||||
rc = ldap_pvt_tls_start( lc->lconn_sb, ld->ld_options.ldo_tls_ctx );
|
||||
|
Loading…
Reference in New Issue
Block a user