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_config.c | |
| 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_config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_config.c b/src/lib/libtls/tls_config.c index 424fd73c93..ed47170835 100644 --- a/src/lib/libtls/tls_config.c +++ b/src/lib/libtls/tls_config.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls_config.c,v 1.57 2019/11/16 06:44:33 beck Exp $ */ | 1 | /* $OpenBSD: tls_config.c,v 1.58 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 | * |
| @@ -253,6 +253,8 @@ tls_config_parse_protocols(uint32_t *protocols, const char *protostr) | |||
| 253 | proto = TLS_PROTOCOL_TLSv1_1; | 253 | proto = TLS_PROTOCOL_TLSv1_1; |
| 254 | else if (strcasecmp(p, "tlsv1.2") == 0) | 254 | else if (strcasecmp(p, "tlsv1.2") == 0) |
| 255 | proto = TLS_PROTOCOL_TLSv1_2; | 255 | proto = TLS_PROTOCOL_TLSv1_2; |
| 256 | else if (strcasecmp(p, "tlsv1.3") == 0) | ||
| 257 | proto = TLS_PROTOCOL_TLSv1_3; | ||
| 256 | 258 | ||
| 257 | if (proto == 0) { | 259 | if (proto == 0) { |
| 258 | free(s); | 260 | free(s); |
