From 7dc6669abcb6dc6de1ee077b2c0819283d473992 Mon Sep 17 00:00:00 2001 From: jsing Date: Sun, 17 Jul 2022 14:39:09 +0000 Subject: [PATCH] Correct value for TLSEXT_TYPE_quic_transport_parameters Use the correct value for TLSEXT_TYPE_quic_transport_parameters according to RFC 9001 section 8.2. Also move the define under LIBRESSL_HAS_QUIC to avoid things finding it prematurely. ok beck@ tb@ --- lib/libssl/tls1.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/libssl/tls1.h b/lib/libssl/tls1.h index 0c7e4a0f0bc..2bdbd3c1843 100644 --- a/lib/libssl/tls1.h +++ b/lib/libssl/tls1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls1.h,v 1.55 2022/07/13 14:28:09 tb Exp $ */ +/* $OpenBSD: tls1.h,v 1.56 2022/07/17 14:39:09 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -255,9 +255,6 @@ extern "C" { /* ExtensionType value from RFC 7685. */ #define TLSEXT_TYPE_padding 21 -/* ExtensionType value from draft-ietf-quic-tls */ -#define TLSEXT_TYPE_quic_transport_parameters 26 - /* ExtensionType value from RFC 4507. */ #define TLSEXT_TYPE_session_ticket 35 @@ -275,6 +272,11 @@ extern "C" { #define TLSEXT_TYPE_key_share 51 #endif +/* ExtensionType value from RFC 9001 section 8.2 */ +#if defined(LIBRESSL_HAS_QUIC) || defined(LIBRESSL_INTERNAL) +#define TLSEXT_TYPE_quic_transport_parameters 57 +#endif + /* * TLS 1.3 extension names from OpenSSL, where they decided to use a different * name from that given in RFC 8446. -- 2.20.1