diff options
author | jsing <> | 2022-07-17 14:39:09 +0000 |
---|---|---|
committer | jsing <> | 2022-07-17 14:39:09 +0000 |
commit | 025ef1603a82541ae3ee3e98000d6d580fd4b3d1 (patch) | |
tree | 808bf851f17e53147599eaac1c05e69621cbd72d /src | |
parent | 0deabc2b8a5f91235a4855f7c54165405247fe73 (diff) | |
download | openbsd-025ef1603a82541ae3ee3e98000d6d580fd4b3d1.tar.gz openbsd-025ef1603a82541ae3ee3e98000d6d580fd4b3d1.tar.bz2 openbsd-025ef1603a82541ae3ee3e98000d6d580fd4b3d1.zip |
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@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libssl/tls1.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libssl/tls1.h b/src/lib/libssl/tls1.h index 0c7e4a0f0b..2bdbd3c184 100644 --- a/src/lib/libssl/tls1.h +++ b/src/lib/libssl/tls1.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls1.h,v 1.55 2022/07/13 14:28:09 tb Exp $ */ | 1 | /* $OpenBSD: tls1.h,v 1.56 2022/07/17 14:39:09 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -255,9 +255,6 @@ extern "C" { | |||
255 | /* ExtensionType value from RFC 7685. */ | 255 | /* ExtensionType value from RFC 7685. */ |
256 | #define TLSEXT_TYPE_padding 21 | 256 | #define TLSEXT_TYPE_padding 21 |
257 | 257 | ||
258 | /* ExtensionType value from draft-ietf-quic-tls */ | ||
259 | #define TLSEXT_TYPE_quic_transport_parameters 26 | ||
260 | |||
261 | /* ExtensionType value from RFC 4507. */ | 258 | /* ExtensionType value from RFC 4507. */ |
262 | #define TLSEXT_TYPE_session_ticket 35 | 259 | #define TLSEXT_TYPE_session_ticket 35 |
263 | 260 | ||
@@ -275,6 +272,11 @@ extern "C" { | |||
275 | #define TLSEXT_TYPE_key_share 51 | 272 | #define TLSEXT_TYPE_key_share 51 |
276 | #endif | 273 | #endif |
277 | 274 | ||
275 | /* ExtensionType value from RFC 9001 section 8.2 */ | ||
276 | #if defined(LIBRESSL_HAS_QUIC) || defined(LIBRESSL_INTERNAL) | ||
277 | #define TLSEXT_TYPE_quic_transport_parameters 57 | ||
278 | #endif | ||
279 | |||
278 | /* | 280 | /* |
279 | * TLS 1.3 extension names from OpenSSL, where they decided to use a different | 281 | * TLS 1.3 extension names from OpenSSL, where they decided to use a different |
280 | * name from that given in RFC 8446. | 282 | * name from that given in RFC 8446. |