Skip to content

Commit

Permalink
Fix user certificate with gnutls 3.0 api (#301)
Browse files Browse the repository at this point in the history
fixes #288
  • Loading branch information
ncopa authored and dinhvh committed Sep 11, 2018
1 parent b15c6b8 commit 47682f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data-types/mailstream_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 47682f3

Please sign in to comment.