mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 22:20:28 -05:00
ITS#1708 ldap_pvt_tls_sb_ctx() et al
This commit is contained in:
parent
70d4ef9a85
commit
5c70106657
3 changed files with 6 additions and 3 deletions
|
|
@ -163,6 +163,8 @@ LDAP_F( char * )
|
|||
ldap_pvt_str2lower LDAP_P(( char *str ));
|
||||
|
||||
/* tls.c */
|
||||
LDAP_F (int) ldap_int_tls_config LDAP_P(( struct ldap *ld,
|
||||
int option, const char *arg ));
|
||||
LDAP_F (int) ldap_pvt_tls_get_option LDAP_P(( struct ldap *ld,
|
||||
int option, void *arg ));
|
||||
LDAP_F (int) ldap_pvt_tls_set_option LDAP_P(( struct ldap *ld,
|
||||
|
|
@ -170,9 +172,10 @@ LDAP_F (int) ldap_pvt_tls_set_option LDAP_P(( struct ldap *ld,
|
|||
|
||||
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(( void ));
|
||||
LDAP_F (int) ldap_pvt_tls_accept LDAP_P(( Sockbuf *sb, void *ctx_arg ));
|
||||
LDAP_F (int) ldap_pvt_tls_inplace LDAP_P(( Sockbuf *sb ));
|
||||
LDAP_F (void *) ldap_pvt_tls_get_ctx LDAP_P(( Sockbuf *sb ));
|
||||
LDAP_F (void *) ldap_pvt_tls_sb_ctx LDAP_P(( Sockbuf *sb ));
|
||||
|
||||
LDAP_F (int) ldap_pvt_tls_init_default_ctx LDAP_P(( void ));
|
||||
|
||||
|
|
|
|||
|
|
@ -1236,7 +1236,7 @@ ldap_int_tls_start ( LDAP *ld, LDAPConn *conn, LDAPURLDesc *srv )
|
|||
return (ld->ld_errno);
|
||||
}
|
||||
|
||||
ssl = (void *) ldap_pvt_tls_sb_ctx( sb );
|
||||
ssl = ldap_pvt_tls_sb_ctx( sb );
|
||||
assert( ssl != NULL );
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -1137,7 +1137,7 @@ int connection_read(ber_socket_t s)
|
|||
c->c_needs_tls_accept = 0;
|
||||
|
||||
/* we need to let SASL know */
|
||||
ssl = (void *)ldap_pvt_tls_sb_ctx( c->c_sb );
|
||||
ssl = ldap_pvt_tls_sb_ctx( c->c_sb );
|
||||
|
||||
c->c_tls_ssf = (slap_ssf_t) ldap_pvt_tls_get_strength( ssl );
|
||||
if( c->c_tls_ssf > c->c_ssf ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue