mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 22:20:28 -05:00
ITS#10014 Non blocking TLS session accept for mbedtls handle
This commit is contained in:
parent
f5fcbb428c
commit
5a45cf6087
1 changed files with 1 additions and 6 deletions
|
|
@ -373,12 +373,7 @@ tlsmt_session_accept( tls_session *sess )
|
|||
{
|
||||
tlsmt_session *s = (tlsmt_session *)sess;
|
||||
|
||||
int ret;
|
||||
do {
|
||||
ret = mbedtls_ssl_handshake( &(s->ssl_ctx) );
|
||||
} while (ret!=0 && (ret== MBEDTLS_ERR_SSL_WANT_READ || ret==MBEDTLS_ERR_SSL_WANT_WRITE));
|
||||
|
||||
return ret;
|
||||
return mbedtls_ssl_handshake( &(s->ssl_ctx) );
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue