diff options
| author | jsing <> | 2020-01-20 08:39:21 +0000 |
|---|---|---|
| committer | jsing <> | 2020-01-20 08:39:21 +0000 |
| commit | 4964c87c6ff167d81b09c143dff53c224a573ccb (patch) | |
| tree | a99f83fd8ff7de867f80b6db4495ae4033f4de29 /src/lib/libtls/tls.h | |
| parent | c922f562f90fd8af4c232301c5dd947462f80f1e (diff) | |
| download | openbsd-4964c87c6ff167d81b09c143dff53c224a573ccb.tar.gz openbsd-4964c87c6ff167d81b09c143dff53c224a573ccb.tar.bz2 openbsd-4964c87c6ff167d81b09c143dff53c224a573ccb.zip | |
Add support for TLSv1.3 as a protocol to libtls.
This makes tls_config_parse_protocols() recognise and handle "tlsv1.3".
If TLSv1.3 is enabled libtls will also request libssl to enable it.
ok beck@ tb@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libtls/tls.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index fee60c7cc8..59e1aac49b 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls.h,v 1.56 2019/11/02 13:37:59 jsing Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.57 2020/01/20 08:39:21 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -27,13 +27,16 @@ extern "C" { | |||
| 27 | #include <stddef.h> | 27 | #include <stddef.h> |
| 28 | #include <stdint.h> | 28 | #include <stdint.h> |
| 29 | 29 | ||
| 30 | #define TLS_API 20180210 | 30 | #define TLS_API 20200120 |
| 31 | 31 | ||
| 32 | #define TLS_PROTOCOL_TLSv1_0 (1 << 1) | 32 | #define TLS_PROTOCOL_TLSv1_0 (1 << 1) |
| 33 | #define TLS_PROTOCOL_TLSv1_1 (1 << 2) | 33 | #define TLS_PROTOCOL_TLSv1_1 (1 << 2) |
| 34 | #define TLS_PROTOCOL_TLSv1_2 (1 << 3) | 34 | #define TLS_PROTOCOL_TLSv1_2 (1 << 3) |
| 35 | #define TLS_PROTOCOL_TLSv1_3 (1 << 4) | ||
| 36 | |||
| 35 | #define TLS_PROTOCOL_TLSv1 \ | 37 | #define TLS_PROTOCOL_TLSv1 \ |
| 36 | (TLS_PROTOCOL_TLSv1_0|TLS_PROTOCOL_TLSv1_1|TLS_PROTOCOL_TLSv1_2) | 38 | (TLS_PROTOCOL_TLSv1_0|TLS_PROTOCOL_TLSv1_1|\ |
| 39 | TLS_PROTOCOL_TLSv1_2|TLS_PROTOCOL_TLSv1_3) | ||
| 37 | 40 | ||
| 38 | #define TLS_PROTOCOLS_ALL TLS_PROTOCOL_TLSv1 | 41 | #define TLS_PROTOCOLS_ALL TLS_PROTOCOL_TLSv1 |
| 39 | #define TLS_PROTOCOLS_DEFAULT TLS_PROTOCOL_TLSv1_2 | 42 | #define TLS_PROTOCOLS_DEFAULT TLS_PROTOCOL_TLSv1_2 |
