summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-05-03 11:48:46 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-05-03 13:50:26 +0200
commit697bdbe3bc765db7f75be4f9f4dc0229e9e14266 (patch)
treeab47ed8ea02284504cfe3001ea544864d86a722b
parentef36913a6c51e8e3280817ea1f5aa2deaffc2608 (diff)
downloadgnutls-697bdbe3bc765db7f75be4f9f4dc0229e9e14266.tar.gz
post_handshake_auth: send extension irrespective of certificates being present
The feature does not necessarily require certificates to be present and an empty cert can be presented. Furthermore, the certificates can be set later on the credentials structure. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/ext/post_handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext/post_handshake.c b/lib/ext/post_handshake.c
index 0af7e53f21..97b94afef8 100644
--- a/lib/ext/post_handshake.c
+++ b/lib/ext/post_handshake.c
@@ -94,7 +94,7 @@ _gnutls_post_handshake_send_params(gnutls_session_t session,
if (unlikely(max == NULL))
return gnutls_assert_val(0);
- if (max->post_handshake_auth && (cred->ncerts || cred->get_cert_callback3))
+ if (max->post_handshake_auth)
return GNUTLS_E_INT_RET_0;
else
return 0;