diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-05-03 11:48:46 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-05-04 14:26:02 +0200 |
commit | f9af0c9a557b97f41da44b681f653c5315b6a59e (patch) | |
tree | da2f0e6924ecaac8a35fe9c3fb218de96c4aa264 | |
parent | 79cf63e60e01484e548f7b106c440d4dc833587b (diff) | |
download | gnutls-f9af0c9a557b97f41da44b681f653c5315b6a59e.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.c | 2 |
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; |