]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10014 Non blocking TLS session accept for mbedtls handle
authorjohan pascal <johan.pascal@linphone.org>
Fri, 26 Jan 2024 10:24:25 +0000 (11:24 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 30 Jan 2024 16:25:41 +0000 (16:25 +0000)
libraries/libldap/tls_mt.c

index 5ca0926d781ce8945f1277cb55db17711416396c..908d84058cf423d81799774398dbfcc550b37a1e 100644 (file)
@@ -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