diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-09-14 10:22:36 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-19 15:29:34 +0100 |
commit | 2f4cd8b95661ad5ad761bb03fcb7a4fba6d2289c (patch) | |
tree | d8ca5576919a4606f2d227d6a990e1a5e2c548f2 /lib/pcert.c | |
parent | 5a8eb0c3fe660c1db8497c58fb5cae22829bc5dd (diff) | |
download | gnutls-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.c | 3 |
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); } |