mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
expose ldap_tls_inplace()
This commit is contained in:
parent
228af40058
commit
ad62d9da1b
2 changed files with 18 additions and 0 deletions
|
|
@ -1337,6 +1337,10 @@ ldap_initialize LDAP_P((
|
||||||
* in tls.c
|
* in tls.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
LDAP_F( int )
|
||||||
|
ldap_tls_inplace LDAP_P((
|
||||||
|
LDAP *ld ));
|
||||||
|
|
||||||
LDAP_F( int )
|
LDAP_F( int )
|
||||||
ldap_start_tls LDAP_P((
|
ldap_start_tls LDAP_P((
|
||||||
LDAP *ld,
|
LDAP *ld,
|
||||||
|
|
|
||||||
|
|
@ -827,6 +827,20 @@ ldap_pvt_tls_inplace ( Sockbuf *sb )
|
||||||
return HAS_TLS( sb ) ? 1 : 0;
|
return HAS_TLS( sb ) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
ldap_tls_inplace( LDAP *ld )
|
||||||
|
{
|
||||||
|
Sockbuf *sb = NULL;
|
||||||
|
int rc;
|
||||||
|
|
||||||
|
rc = ldap_get_option( ld, LDAP_OPT_SOCKBUF, (void *)&sb );
|
||||||
|
if ( rc != LDAP_SUCCESS || sb == NULL ) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ldap_pvt_tls_inplace( sb );
|
||||||
|
}
|
||||||
|
|
||||||
static X509 *
|
static X509 *
|
||||||
tls_get_cert( SSL *s )
|
tls_get_cert( SSL *s )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue