summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2021-03-17 17:42:53 +0000
committerjsing <jsing@openbsd.org>2021-03-17 17:42:53 +0000
commit83b8f8229dfd092e85bc8839f11f9f745cb02e50 (patch)
tree1b436f27655ba060dac0b3e287541747ca06b00f /lib/libssl/ssl_locl.h
parentUpdate for DTLSv1.2 version handling. (diff)
downloadwireguard-openbsd-83b8f8229dfd092e85bc8839f11f9f745cb02e50.tar.xz
wireguard-openbsd-83b8f8229dfd092e85bc8839f11f9f745cb02e50.zip
Enable DTLSv1.2.
This means that the DTLS_method() will now use DTLSv1.2 rather than DTLSv1. Additional DTLSv1.2 related symbols and defines will be made publicly visible in the near future. ok inoguchi@ tb@
Diffstat (limited to 'lib/libssl/ssl_locl.h')
-rw-r--r--lib/libssl/ssl_locl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h
index fed14b4b196..99b72cc65e9 100644
--- a/lib/libssl/ssl_locl.h
+++ b/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_locl.h,v 1.326 2021/03/11 17:14:47 jsing Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.327 2021/03/17 17:42:53 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -169,6 +169,10 @@ __BEGIN_HIDDEN_DECLS
#define CTASSERT(x) extern char _ctassert[(x) ? 1 : -1 ] \
__attribute__((__unused__))
+#ifndef LIBRESSL_HAS_DTLS1_2
+#define LIBRESSL_HAS_DTLS1_2
+#endif
+
#ifndef LIBRESSL_HAS_TLS1_3_CLIENT
#define LIBRESSL_HAS_TLS1_3_CLIENT
#endif