client/server controls added to ldap_start_tls().

This commit is contained in:
Mark Valence 1999-12-10 18:26:12 +00:00
parent 01ab716e8a
commit e0e7e9842e
2 changed files with 7 additions and 3 deletions

View File

@ -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:

View File

@ -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 );