summaryrefslogtreecommitdiff
path: root/lib/pcert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-09-14 10:22:36 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-02-19 15:29:34 +0100
commit2f4cd8b95661ad5ad761bb03fcb7a4fba6d2289c (patch)
treed8ca5576919a4606f2d227d6a990e1a5e2c548f2 /lib/pcert.c
parent5a8eb0c3fe660c1db8497c58fb5cae22829bc5dd (diff)
downloadgnutls-2f4cd8b95661ad5ad761bb03fcb7a4fba6d2289c.tar.gz
handshake: added basic support for TLS 1.3 handshake in client side
That does not include support for client certificates as it requires extension handling improvements in order for extensions to be context sensitive (now they cannot distinguish whether the parsing routine is called during client hello or certificate request reading) This does not include proper parsing of extensions present in the certificate message. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/pcert.c')
-rw-r--r--lib/pcert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pcert.c b/lib/pcert.c
index 56322e124c..e88ddc3fba 100644
--- a/lib/pcert.c
+++ b/lib/pcert.c
@@ -317,7 +317,8 @@ int gnutls_pcert_export_x509(gnutls_pcert_st * pcert,
**/
void gnutls_pcert_deinit(gnutls_pcert_st * pcert)
{
- gnutls_pubkey_deinit(pcert->pubkey);
+ if (pcert->pubkey)
+ gnutls_pubkey_deinit(pcert->pubkey);
pcert->pubkey = NULL;
_gnutls_free_datum(&pcert->cert);
}