From b423b78e5d29b2dff67a10e6e305b3d1c725c449 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 6 Nov 2018 01:37:23 +0000 Subject: Add TLS1_3_VERSION and SSL_OP_NO_TLSv1_3 defines under guards. ok beck@ bluhm@ tb@ --- src/lib/libssl/ssl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/ssl.h') diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 324691485b..8d4fcc442f 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.159 2018/08/24 20:30:21 tb Exp $ */ +/* $OpenBSD: ssl.h,v 1.160 2018/11/06 01:37:23 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -146,6 +146,7 @@ #include #include + #include #include #include @@ -512,6 +513,10 @@ struct ssl_session_st { #define SSL_OP_NO_TLSv1_2 0x08000000L #define SSL_OP_NO_TLSv1_1 0x10000000L +#if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL) +#define SSL_OP_NO_TLSv1_3 0x20000000L +#endif + /* SSL_OP_ALL: various bug workarounds that should be rather harmless. */ #define SSL_OP_ALL \ (SSL_OP_LEGACY_SERVER_CONNECT) -- cgit v1.2.3-55-g6feb