Expose ldap_int_tls_connect as ldap_pvt_tls_connect

This commit is contained in:
Ondřej Kuzník 2017-09-22 09:22:56 +01:00 committed by Ondřej Kuzník
parent 0f44671c51
commit 10a6ffa3e9
2 changed files with 8 additions and 0 deletions

View File

@ -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 LDAP_P(( void ));
LDAP_F (int) ldap_pvt_tls_init_def_ctx LDAP_P(( int is_server )); 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_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 (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_sb_ctx LDAP_P(( Sockbuf *sb ));
LDAP_F (void) ldap_pvt_tls_ctx_free LDAP_P(( void * )); LDAP_F (void) ldap_pvt_tls_ctx_free LDAP_P(( void * ));

View File

@ -421,6 +421,13 @@ ldap_int_tls_connect( LDAP *ld, LDAPConn *conn, const char *host )
return 0; 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. * Call this to do a TLS accept on a sockbuf.
* Everything else is the same as with tls_connect. * Everything else is the same as with tls_connect.