summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_methods.c
diff options
context:
space:
mode:
authorjsing <>2020-01-22 01:21:43 +0000
committerjsing <>2020-01-22 01:21:43 +0000
commit33e8d2d1da86ec2fec46397361af862802b89333 (patch)
tree57cea55ebca0c29b9c1f68035245c609e56c6cee /src/lib/libssl/ssl_methods.c
parentd2535f6d6c56956061dc8da2a8a2bfdd6b98a0a4 (diff)
downloadopenbsd-33e8d2d1da86ec2fec46397361af862802b89333.tar.gz
openbsd-33e8d2d1da86ec2fec46397361af862802b89333.tar.bz2
openbsd-33e8d2d1da86ec2fec46397361af862802b89333.zip
Split the TLSv1.3 guards into separate client and server guards.
ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_methods.c')
-rw-r--r--src/lib/libssl/ssl_methods.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_methods.c b/src/lib/libssl/ssl_methods.c
index 5a62a7adc4..33d2d7654d 100644
--- a/src/lib/libssl/ssl_methods.c
+++ b/src/lib/libssl/ssl_methods.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_methods.c,v 1.5 2019/11/17 19:07:07 jsing Exp $ */ 1/* $OpenBSD: ssl_methods.c,v 1.6 2020/01/22 01:21:43 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -211,7 +211,7 @@ dtls1_get_server_method(int ver)
211 return (NULL); 211 return (NULL);
212} 212}
213 213
214#ifdef LIBRESSL_HAS_TLS1_3 214#ifdef LIBRESSL_HAS_TLS1_3_CLIENT
215static const SSL_METHOD_INTERNAL TLS_client_method_internal_data = { 215static const SSL_METHOD_INTERNAL TLS_client_method_internal_data = {
216 .version = TLS1_3_VERSION, 216 .version = TLS1_3_VERSION,
217 .min_version = TLS1_VERSION, 217 .min_version = TLS1_VERSION,
@@ -384,7 +384,7 @@ SSLv23_client_method(void)
384const SSL_METHOD * 384const SSL_METHOD *
385TLS_client_method(void) 385TLS_client_method(void)
386{ 386{
387#ifdef LIBRESSL_HAS_TLS1_3 387#ifdef LIBRESSL_HAS_TLS1_3_CLIENT
388 return (&TLS_client_method_data); 388 return (&TLS_client_method_data);
389#else 389#else
390 return tls_legacy_client_method(); 390 return tls_legacy_client_method();