summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_methods.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2019-02-14 18:53:15 +0000
committerjsing <jsing@openbsd.org>2019-02-14 18:53:15 +0000
commit64a0a0c801a0d245e3a7871e39c017343ff585b0 (patch)
treef86dabca178732cf0c7481365fb89594d08dc6bd /lib/libssl/ssl_methods.c
parentHCCPARAMS1 register CFC and SEC values are 1 bit. (diff)
downloadwireguard-openbsd-64a0a0c801a0d245e3a7871e39c017343ff585b0.tar.xz
wireguard-openbsd-64a0a0c801a0d245e3a7871e39c017343ff585b0.zip
Correct guards.
Diffstat (limited to 'lib/libssl/ssl_methods.c')
-rw-r--r--lib/libssl/ssl_methods.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/ssl_methods.c b/lib/libssl/ssl_methods.c
index 636fed92a06..bacc186a58b 100644
--- a/lib/libssl/ssl_methods.c
+++ b/lib/libssl/ssl_methods.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_methods.c,v 1.2 2019/02/14 17:50:07 jsing Exp $ */
+/* $OpenBSD: ssl_methods.c,v 1.3 2019/02/14 18:53:15 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -190,7 +190,7 @@ dtls1_get_server_method(int ver)
return (NULL);
}
-#ifdef LIBRESSL_HAS_TLS13
+#ifdef LIBRESSL_HAS_TLS1_3
static const SSL_METHOD_INTERNAL TLS_client_method_internal_data = {
.version = TLS1_3_VERSION,
.min_version = TLS1_VERSION,
@@ -358,7 +358,7 @@ SSLv23_client_method(void)
const SSL_METHOD *
TLS_client_method(void)
{
-#ifdef LIBRESSL_HAS_TLS13
+#ifdef LIBRESSL_HAS_TLS1_3
return (&TLS_client_method_data);
#else
return tls_legacy_client_method();