From 47682f342efc7f9661c49f9da8712ac6d757bc17 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 11 Sep 2018 08:51:51 +0200 Subject: [PATCH] Fix user certificate with gnutls 3.0 api (#301) fixes #288 --- src/data-types/mailstream_ssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data-types/mailstream_ssl.c b/src/data-types/mailstream_ssl.c index 248d392d..cb0a17eb 100644 --- a/src/data-types/mailstream_ssl.c +++ b/src/data-types/mailstream_ssl.c @@ -568,7 +568,8 @@ static int mailstream_gnutls_client_cert_cb(gnutls_session session, #if GNUTLS_VERSION_NUMBER <= 0x020c00 st->type = type; #else - st->key_type = type; + st->cert_type = type; + st->key_type = GNUTLS_PRIVKEY_X509; #endif st->cert.x509 = &(ssl_context->client_x509); st->key.x509 = ssl_context->client_pkey;