diff options
author | Omar Polo <op@omarpolo.com> | 2024-01-07 18:52:51 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-01-07 18:52:51 +0000 |
commit | ebfc578491a0c59e41607c6cb58fc1c8e02f2ec3 (patch) | |
tree | d80e6637ada79e64e06afa5608622d291dec1cf2 /compat/libtls/tls.h | |
parent | 12eb29d878ad5a96f030993f9331007f632233ab (diff) |
sync libtls
Diffstat (limited to 'compat/libtls/tls.h')
-rw-r--r-- | compat/libtls/tls.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/compat/libtls/tls.h b/compat/libtls/tls.h index b94a6fa..3418374 100644 --- a/compat/libtls/tls.h +++ b/compat/libtls/tls.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls.h,v 1.62 2022/03/24 15:56:34 tb Exp $ */ +/* $OpenBSD: tls.h,v 1.63 2023/07/02 06:37:27 beck Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -29,14 +29,18 @@ extern "C" { #define TLS_API 20200120 -#define TLS_PROTOCOL_TLSv1_0 (1 << 1) -#define TLS_PROTOCOL_TLSv1_1 (1 << 2) +/* + * Deprecated versions of TLS. Using these effectively selects + * the minimum supported version. + */ +#define TLS_PROTOCOL_TLSv1_0 (1 << 3) +#define TLS_PROTOCOL_TLSv1_1 (1 << 3) +/* Supported versions of TLS */ #define TLS_PROTOCOL_TLSv1_2 (1 << 3) #define TLS_PROTOCOL_TLSv1_3 (1 << 4) #define TLS_PROTOCOL_TLSv1 \ - (TLS_PROTOCOL_TLSv1_0|TLS_PROTOCOL_TLSv1_1|\ - TLS_PROTOCOL_TLSv1_2|TLS_PROTOCOL_TLSv1_3) + (TLS_PROTOCOL_TLSv1_2|TLS_PROTOCOL_TLSv1_3) #define TLS_PROTOCOLS_ALL TLS_PROTOCOL_TLSv1 #define TLS_PROTOCOLS_DEFAULT (TLS_PROTOCOL_TLSv1_2|TLS_PROTOCOL_TLSv1_3) |