From a48e0ded4866e9e70a11237bb5a76c53453b830d Mon Sep 17 00:00:00 2001 From: jsing Date: Sat, 20 Feb 2021 08:33:17 +0000 Subject: Add DTLSv1.2 methods. These are currently guarded by LIBRESSL_HAS_DTLS1_2 and LIBRESSL_INTERNAL. ok tb@ --- lib/libssl/ssl.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/libssl/ssl.h') diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h index ec9544acc5f..e7ff6cec2a0 100644 --- a/lib/libssl/ssl.h +++ b/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.181 2021/02/20 08:11:57 jsing Exp $ */ +/* $OpenBSD: ssl.h,v 1.182 2021/02/20 08:33:17 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1528,6 +1528,12 @@ const SSL_METHOD *DTLSv1_method(void); /* DTLSv1.0 */ const SSL_METHOD *DTLSv1_server_method(void); /* DTLSv1.0 */ const SSL_METHOD *DTLSv1_client_method(void); /* DTLSv1.0 */ +#if defined(LIBRESSL_HAS_DTLS1_2) || defined(LIBRESSL_INTERNAL) +const SSL_METHOD *DTLSv1_2_method(void); /* DTLSv1.2 */ +const SSL_METHOD *DTLSv1_2_server_method(void); /* DTLSv1.2 */ +const SSL_METHOD *DTLSv1_2_client_method(void); /* DTLSv1.2 */ +#endif + const SSL_METHOD *DTLS_method(void); /* DTLS v1.0 or later */ const SSL_METHOD *DTLS_server_method(void); /* DTLS v1.0 or later */ const SSL_METHOD *DTLS_client_method(void); /* DTLS v1.0 or later */ -- cgit v1.2.3-59-g8ed1b