summaryrefslogtreecommitdiff
path: root/lib/gnutls_handshake.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-02-10 11:52:21 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-02-10 11:52:21 +0100
commit6229a47d612bfcf556494c7c968b1745d5903eae (patch)
tree5906acfe61a2fe36ac5fb2566803843f49c65fd5 /lib/gnutls_handshake.c
parent1444c78274efe982be18263fbbc8bfbb5e1a63c6 (diff)
downloadgnutls-6229a47d612bfcf556494c7c968b1745d5903eae.tar.gz
In client side the verify callback is always being called.
Diffstat (limited to 'lib/gnutls_handshake.c')
-rw-r--r--lib/gnutls_handshake.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index 5bc7d70815..ddd80272d7 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -2498,7 +2498,8 @@ static int run_verify_callback(gnutls_session_t session, unsigned int side)
return 0;
if (cred != NULL && cred->verify_callback != NULL &&
- session->internals.send_cert_req != GNUTLS_CERT_IGNORE)
+ (session->security_parameters.entity == GNUTLS_CLIENT ||
+ session->internals.send_cert_req != GNUTLS_CERT_IGNORE))
{
ret = cred->verify_callback (session);
if (ret < -1)