diff options
author | 2020-01-22 01:21:43 +0000 | |
---|---|---|
committer | 2020-01-22 01:21:43 +0000 | |
commit | 7214807f44f621693bd895b83ec6fd2c0890412d (patch) | |
tree | f5c79a27bf52c971a27410210bd311ec7ecda236 /lib/libssl/ssl_methods.c | |
parent | Implement close-notify and SSL_shutdown() handling for the TLSv1.3 client. (diff) | |
download | wireguard-openbsd-7214807f44f621693bd895b83ec6fd2c0890412d.tar.xz wireguard-openbsd-7214807f44f621693bd895b83ec6fd2c0890412d.zip |
Split the TLSv1.3 guards into separate client and server guards.
ok beck@ tb@
Diffstat (limited to 'lib/libssl/ssl_methods.c')
-rw-r--r-- | lib/libssl/ssl_methods.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/ssl_methods.c b/lib/libssl/ssl_methods.c index 5a62a7adc48..33d2d7654d2 100644 --- a/lib/libssl/ssl_methods.c +++ b/lib/libssl/ssl_methods.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_methods.c,v 1.5 2019/11/17 19:07:07 jsing Exp $ */ +/* $OpenBSD: ssl_methods.c,v 1.6 2020/01/22 01:21:43 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -211,7 +211,7 @@ dtls1_get_server_method(int ver) return (NULL); } -#ifdef LIBRESSL_HAS_TLS1_3 +#ifdef LIBRESSL_HAS_TLS1_3_CLIENT static const SSL_METHOD_INTERNAL TLS_client_method_internal_data = { .version = TLS1_3_VERSION, .min_version = TLS1_VERSION, @@ -384,7 +384,7 @@ SSLv23_client_method(void) const SSL_METHOD * TLS_client_method(void) { -#ifdef LIBRESSL_HAS_TLS1_3 +#ifdef LIBRESSL_HAS_TLS1_3_CLIENT return (&TLS_client_method_data); #else return tls_legacy_client_method(); |