diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-06-19 16:03:52 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-06-21 04:39:54 +0000 |
commit | 74d0907584d9e0fc4073b9360a8ee4e39a12d3be (patch) | |
tree | b2bc03ea83785c4a81585a71b78791964d3cbf95 /lib/supplemental.c | |
parent | cda9b9f4ee9758ec95d49af674fb13e9a622ad9a (diff) | |
download | gnutls-74d0907584d9e0fc4073b9360a8ee4e39a12d3be.tar.gz |
gnutls_supplemental_register: disable TLS 1.3 globally
This allows using the registered supplemental data handlers, since
these are not used under TLS 1.3.
Resolves #479
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/supplemental.c')
-rw-r--r-- | lib/supplemental.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/supplemental.c b/lib/supplemental.c index a0996a1285..84305c7086 100644 --- a/lib/supplemental.c +++ b/lib/supplemental.c @@ -282,7 +282,8 @@ _gnutls_supplemental_register(gnutls_supplemental_entry_st *entry) * registered or handled by GnuTLS internally %GNUTLS_E_ALREADY_REGISTERED * will be returned. * - * This function is not thread safe. + * This function is not thread safe. As supplemental data are not defined under + * TLS 1.3, this function will disable TLS 1.3 support globally. * * Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code. * @@ -304,6 +305,9 @@ gnutls_supplemental_register(const char *name, gnutls_supplemental_data_format_t if (ret < 0) { gnutls_free(tmp_entry.name); } + + _gnutls_disable_tls13 = 1; + return ret; } |