Commit 10a6ffa3 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Ondřej Kuzník
Browse files

Expose ldap_int_tls_connect as ldap_pvt_tls_connect

parent 0f44671c
......@@ -428,6 +428,7 @@ LDAP_F (void) ldap_pvt_tls_destroy LDAP_P(( void ));
LDAP_F (int) ldap_pvt_tls_init LDAP_P(( void ));
LDAP_F (int) ldap_pvt_tls_init_def_ctx LDAP_P(( int is_server ));
LDAP_F (int) ldap_pvt_tls_accept LDAP_P(( Sockbuf *sb, void *ctx_arg ));
LDAP_F (int) ldap_pvt_tls_connect LDAP_P(( struct ldap *ld, Sockbuf *sb, const char *host ));
LDAP_F (int) ldap_pvt_tls_inplace LDAP_P(( Sockbuf *sb ));
LDAP_F (void *) ldap_pvt_tls_sb_ctx LDAP_P(( Sockbuf *sb ));
LDAP_F (void) ldap_pvt_tls_ctx_free LDAP_P(( void * ));
......
......@@ -421,6 +421,13 @@ ldap_int_tls_connect( LDAP *ld, LDAPConn *conn, const char *host )
return 0;
}
int
ldap_pvt_tls_connect( LDAP *ld, Sockbuf *sb, const char *host )
{
LDAPConn conn = { .lconn_sb = sb };
return ldap_int_tls_connect( ld, &conn, host );
}
/*
* Call this to do a TLS accept on a sockbuf.
* Everything else is the same as with tls_connect.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment