mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#821: TLS data ready fix from <mattc@chartist.com>
This commit is contained in:
parent
fc227a8816
commit
edef4b2970
@ -361,6 +361,11 @@ sb_tls_ctrl( Sockbuf_IO_Desc *sbiod, int opt, void *arg )
|
|||||||
if ( opt == LBER_SB_OPT_GET_SSL ) {
|
if ( opt == LBER_SB_OPT_GET_SSL ) {
|
||||||
*((SSL **)arg) = p->ssl;
|
*((SSL **)arg) = p->ssl;
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
} else if ( opt == LBER_SB_OPT_DATA_READY ) {
|
||||||
|
if( SSL_pending( p->ssl ) > 0 ) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return LBER_SBIOD_CTRL_NEXT( sbiod, opt, arg );
|
return LBER_SBIOD_CTRL_NEXT( sbiod, opt, arg );
|
||||||
|
Loading…
Reference in New Issue
Block a user