diff options
Diffstat (limited to 'src/lib/libssl/ssl.h')
-rw-r--r-- | src/lib/libssl/ssl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 425ba50c14..ec9544acc5 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.180 2021/01/26 18:43:41 tb Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.181 2021/02/20 08:11:57 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -301,6 +301,9 @@ extern "C" { | |||
301 | #define SSL_TXT_STREEBOG512 "STREEBOG512" | 301 | #define SSL_TXT_STREEBOG512 "STREEBOG512" |
302 | 302 | ||
303 | #define SSL_TXT_DTLS1 "DTLSv1" | 303 | #define SSL_TXT_DTLS1 "DTLSv1" |
304 | #if defined(LIBRESSL_HAS_DTLS1_2) || defined(LIBRESSL_INTERNAL) | ||
305 | #define SSL_TXT_DTLS1_2 "DTLSv1.2" | ||
306 | #endif | ||
304 | #define SSL_TXT_SSLV2 "SSLv2" | 307 | #define SSL_TXT_SSLV2 "SSLv2" |
305 | #define SSL_TXT_SSLV3 "SSLv3" | 308 | #define SSL_TXT_SSLV3 "SSLv3" |
306 | #define SSL_TXT_TLSV1 "TLSv1" | 309 | #define SSL_TXT_TLSV1 "TLSv1" |
@@ -520,6 +523,11 @@ struct ssl_session_st { | |||
520 | #define SSL_OP_NO_TLSv1_3 0x20000000L | 523 | #define SSL_OP_NO_TLSv1_3 0x20000000L |
521 | #endif | 524 | #endif |
522 | 525 | ||
526 | #if defined(LIBRESSL_HAS_DTLS1_2) || defined(LIBRESSL_INTERNAL) | ||
527 | #define SSL_OP_NO_DTLSv1 0x40000000L | ||
528 | #define SSL_OP_NO_DTLSv1_2 0x80000000L | ||
529 | #endif | ||
530 | |||
523 | /* SSL_OP_ALL: various bug workarounds that should be rather harmless. */ | 531 | /* SSL_OP_ALL: various bug workarounds that should be rather harmless. */ |
524 | #define SSL_OP_ALL \ | 532 | #define SSL_OP_ALL \ |
525 | (SSL_OP_LEGACY_SERVER_CONNECT) | 533 | (SSL_OP_LEGACY_SERVER_CONNECT) |