diff options
author | jsing <> | 2020-01-20 08:39:21 +0000 |
---|---|---|
committer | jsing <> | 2020-01-20 08:39:21 +0000 |
commit | 9ea343cf6ccda35b4aa4c4e74dd80b7a59029076 (patch) | |
tree | a99f83fd8ff7de867f80b6db4495ae4033f4de29 /src/lib/libtls/tls_config.c | |
parent | 30f0a4c063ba95ea915d4ead9ad0ea6630bf5271 (diff) | |
download | openbsd-9ea343cf6ccda35b4aa4c4e74dd80b7a59029076.tar.gz openbsd-9ea343cf6ccda35b4aa4c4e74dd80b7a59029076.tar.bz2 openbsd-9ea343cf6ccda35b4aa4c4e74dd80b7a59029076.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 'src/lib/libtls/tls_config.c')
-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); |