diff options
author | tb <tb@openbsd.org> | 2021-03-31 16:59:32 +0000 |
---|---|---|
committer | tb <tb@openbsd.org> | 2021-03-31 16:59:32 +0000 |
commit | e6d88397616a72165a937474dab56c25efd3d032 (patch) | |
tree | 85a429160068068851865b3a0a67896c34436fb7 /lib/libssl/ssl_methods.c | |
parent | Document SSL_set_hostflags(3) and SSL_get0_peername(3) (diff) | |
download | wireguard-openbsd-e6d88397616a72165a937474dab56c25efd3d032.tar.xz wireguard-openbsd-e6d88397616a72165a937474dab56c25efd3d032.zip |
Expose various DTLSv1.2 specific functions and defines
ok bcook inoguchi jsing
Diffstat (limited to '')
-rw-r--r-- | lib/libssl/ssl_methods.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/libssl/ssl_methods.c b/lib/libssl/ssl_methods.c index 084f533f5e8..a3e51ac0d01 100644 --- a/lib/libssl/ssl_methods.c +++ b/lib/libssl/ssl_methods.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_methods.c,v 1.23 2021/02/25 17:06:05 jsing Exp $ */ +/* $OpenBSD: ssl_methods.c,v 1.24 2021/03/31 16:59:32 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -59,7 +59,6 @@ #include "ssl_locl.h" #include "tls13_internal.h" -#ifdef LIBRESSL_HAS_DTLS1_2 static const SSL_METHOD_INTERNAL DTLS_method_internal_data = { .dtls = 1, .server = 1, @@ -117,7 +116,6 @@ static const SSL_METHOD DTLS_client_method_data = { .put_cipher_by_char = ssl3_put_cipher_by_char, .internal = &DTLS_client_method_internal_data, }; -#endif static const SSL_METHOD_INTERNAL DTLSv1_method_internal_data = { .dtls = 1, @@ -274,31 +272,19 @@ DTLSv1_2_server_method(void) const SSL_METHOD * DTLS_client_method(void) { -#ifdef LIBRESSL_HAS_DTLS1_2 return &DTLS_client_method_data; -#else - return DTLSv1_client_method(); -#endif } const SSL_METHOD * DTLS_method(void) { -#ifdef LIBRESSL_HAS_DTLS1_2 return &DTLS_method_data; -#else - return DTLSv1_method(); -#endif } const SSL_METHOD * DTLS_server_method(void) { -#ifdef LIBRESSL_HAS_DTLS1_2 return &DTLS_method_data; -#else - return DTLSv1_server_method(); -#endif } #if defined(LIBRESSL_HAS_TLS1_3_CLIENT) && defined(LIBRESSL_HAS_TLS1_3_SERVER) |