summaryrefslogtreecommitdiff
path: root/lib/ext/key_share.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-05-07 09:52:32 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-05-17 13:54:03 +0200
commitf41df13ec8b77414ff8e682d8234c089bd24e7e9 (patch)
treebf9a12d81c1469c6aefa896393bd95f95cdea7f4 /lib/ext/key_share.c
parent9c0b15a08a48b72fe63ccd5b046ff9199212d10b (diff)
downloadgnutls-f41df13ec8b77414ff8e682d8234c089bd24e7e9.tar.gz
handshake: do not send TLS extensions under DTLS and vice versatmp-prohibit-tls-dtls-mix
That is, introduce the notion of TLS-only and DTLS-only extensions, providing a framework to prevent sending extensions which are registered for example for TLS 1.3, under DTLS and vice versa. Resolves #440 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/ext/key_share.c')
-rw-r--r--lib/ext/key_share.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext/key_share.c b/lib/ext/key_share.c
index c46f0c733e..5802e47679 100644
--- a/lib/ext/key_share.c
+++ b/lib/ext/key_share.c
@@ -48,8 +48,8 @@ const hello_ext_entry_st ext_mod_key_share = {
.tls_id = 51,
.gid = GNUTLS_EXTENSION_KEY_SHARE,
.parse_type = _GNUTLS_EXT_TLS_POST_CS,
- .validity = GNUTLS_EXT_FLAG_CLIENT_HELLO|GNUTLS_EXT_FLAG_TLS13_SERVER_HELLO|GNUTLS_EXT_FLAG_HRR,
-
+ .validity = GNUTLS_EXT_FLAG_TLS | GNUTLS_EXT_FLAG_CLIENT_HELLO | GNUTLS_EXT_FLAG_TLS13_SERVER_HELLO |
+ GNUTLS_EXT_FLAG_HRR,
.recv_func = key_share_recv_params,
.send_func = key_share_send_params,
.pack_func = NULL,