summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2019-02-14 18:53:15 +0000
committerjsing <>2019-02-14 18:53:15 +0000
commit9f38040d094736e887058a6ad4f94dd0544e567a (patch)
tree94e4b2061205783e9d5bcfc7544e3eb530747bf5 /src
parentbcbe5dcae6ade1b7a990956d0fe910175bfdbfe6 (diff)
downloadopenbsd-9f38040d094736e887058a6ad4f94dd0544e567a.tar.gz
openbsd-9f38040d094736e887058a6ad4f94dd0544e567a.tar.bz2
openbsd-9f38040d094736e887058a6ad4f94dd0544e567a.zip
Correct guards.
Diffstat (limited to 'src')
-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 636fed92a0..bacc186a58 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.2 2019/02/14 17:50:07 jsing Exp $ */ 1/* $OpenBSD: ssl_methods.c,v 1.3 2019/02/14 18:53:15 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 *
@@ -190,7 +190,7 @@ dtls1_get_server_method(int ver)
190 return (NULL); 190 return (NULL);
191} 191}
192 192
193#ifdef LIBRESSL_HAS_TLS13 193#ifdef LIBRESSL_HAS_TLS1_3
194static const SSL_METHOD_INTERNAL TLS_client_method_internal_data = { 194static const SSL_METHOD_INTERNAL TLS_client_method_internal_data = {
195 .version = TLS1_3_VERSION, 195 .version = TLS1_3_VERSION,
196 .min_version = TLS1_VERSION, 196 .min_version = TLS1_VERSION,
@@ -358,7 +358,7 @@ SSLv23_client_method(void)
358const SSL_METHOD * 358const SSL_METHOD *
359TLS_client_method(void) 359TLS_client_method(void)
360{ 360{
361#ifdef LIBRESSL_HAS_TLS13 361#ifdef LIBRESSL_HAS_TLS1_3
362 return (&TLS_client_method_data); 362 return (&TLS_client_method_data);
363#else 363#else
364 return tls_legacy_client_method(); 364 return tls_legacy_client_method();