summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-01-18 17:41:58 +0000
committerSimon Josefsson <simon@josefsson.org>2005-01-18 17:41:58 +0000
commit20bf84b8a1de54080021c90ad95b5d80c762b0c9 (patch)
treec9831b22cd277aa9c7e8af7db6c29f0dfad17b92
parenta848341f127da4ef858572be1cd34e52adbae041 (diff)
downloadgnutls-20bf84b8a1de54080021c90ad95b5d80c762b0c9.tar.gz
Fix client cert callback, to make X.509 client authentication work.
-rw-r--r--src/cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cli.c b/src/cli.c
index 87e3b002ae..af69884c45 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -304,6 +304,8 @@ static int cert_callback(gnutls_session session,
st->cert.x509 = &x509_crt;
st->key.x509 = x509_key;
+ st->type = type;
+
st->deinit_all = 0;
return 0;
@@ -315,6 +317,8 @@ static int cert_callback(gnutls_session session,
st->cert.pgp = pgp_crt;
st->key.pgp = pgp_key;
+ st->type = type;
+
st->deinit_all = 0;
return 0;