Commit 78d47382 authored by Ryan Tandy's avatar Ryan Tandy Committed by Quanah Gibson-Mount
Browse files

ITS#8650 retry gnutls_handshake after GNUTLS_E_AGAIN

parent f7651fd6
......@@ -358,7 +358,9 @@ tlsg_session_accept( tls_session *session )
tlsg_session *s = (tlsg_session *)session;
int rc;
rc = gnutls_handshake( s->session );
for ( rc = gnutls_handshake ( s->session );
rc == GNUTLS_E_INTERRUPTED || rc == GNUTLS_E_AGAIN;
rc = gnutls_handshake ( s->session ) );
if ( rc == 0 && s->ctx->reqcert != LDAP_OPT_X_TLS_NEVER ) {
const gnutls_datum_t *peer_cert_list;
unsigned int list_size;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment