summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libtls/tls_config.c')
-rw-r--r--src/lib/libtls/tls_config.c4
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);