Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
7b5181da
Commit
7b5181da
authored
May 06, 2017
by
Ryan Tandy
Browse files
ITS
#8650
retry gnutls_handshake after GNUTLS_E_AGAIN
parent
cc79503e
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/tls_g.c
View file @
7b5181da
...
...
@@ -388,7 +388,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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment