summaryrefslogtreecommitdiff
path: root/lib/gnutls_kx.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-08-06 15:02:47 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-08-06 15:02:47 +0000
commit645b83512a867ea3bb5b2cce432c679b0e2021d0 (patch)
tree6c3641ed25e0c6f47bc0995dea3526062bae3bfd /lib/gnutls_kx.c
parent8c1b30f664141cd0ebfcb42db430c84127de832e (diff)
downloadgnutls-645b83512a867ea3bb5b2cce432c679b0e2021d0.tar.gz
more x509 client certificate stuff
Diffstat (limited to 'lib/gnutls_kx.c')
-rw-r--r--lib/gnutls_kx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gnutls_kx.c b/lib/gnutls_kx.c
index 14a4dc52e2..b4f6040f24 100644
--- a/lib/gnutls_kx.c
+++ b/lib/gnutls_kx.c
@@ -225,9 +225,13 @@ int _gnutls_send_client_certificate_verify(SOCKET cd, GNUTLS_STATE state)
/* if certificate verify is not needed just exit
*/
- if (state->gnutls_key->certificate_requested==0) return 0;
+ if (state->gnutls_key->certificate_requested==0) {
+ gnutls_assert();
+ return 0;
+ }
if (state->gnutls_internals.auth_struct->gnutls_generate_client_cert_vrfy==NULL) {
+ gnutls_assert();
return 0; /* this algorithm does not support cli_cert_vrfy
*/
}