diff options
author | jsing <> | 2021-02-20 08:11:57 +0000 |
---|---|---|
committer | jsing <> | 2021-02-20 08:11:57 +0000 |
commit | 93e34a05ac8c1e16b54a304ae44d77e1c961484c (patch) | |
tree | 231a27ddb01199aab95f9603c903c58dd32c6fbb /src/lib/libssl/dtls1.h | |
parent | bacd1c55415e25c60d3d43d34214067b6f87bf10 (diff) | |
download | openbsd-93e34a05ac8c1e16b54a304ae44d77e1c961484c.tar.gz openbsd-93e34a05ac8c1e16b54a304ae44d77e1c961484c.tar.bz2 openbsd-93e34a05ac8c1e16b54a304ae44d77e1c961484c.zip |
Add various public DTLS related defines.
These are currently guarded by LIBRESSL_HAS_DTLS1_2 and LIBRESSL_INTERNAL.
ok tb@
Diffstat (limited to 'src/lib/libssl/dtls1.h')
-rw-r--r-- | src/lib/libssl/dtls1.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libssl/dtls1.h b/src/lib/libssl/dtls1.h index 1ed7c2dc30..b822f659ab 100644 --- a/src/lib/libssl/dtls1.h +++ b/src/lib/libssl/dtls1.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dtls1.h,v 1.23 2020/03/12 17:01:53 jsing Exp $ */ | 1 | /* $OpenBSD: dtls1.h,v 1.24 2021/02/20 08:11:57 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -74,6 +74,10 @@ extern "C" { | |||
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | #define DTLS1_VERSION 0xFEFF | 76 | #define DTLS1_VERSION 0xFEFF |
77 | #if defined(LIBRESSL_HAS_DTLS1_2) || defined(LIBRESSL_INTERNAL) | ||
78 | #define DTLS1_2_VERSION 0xFEFD | ||
79 | #define DTLS1_VERSION_MAJOR 0xFE | ||
80 | #endif | ||
77 | 81 | ||
78 | /* lengths of messages */ | 82 | /* lengths of messages */ |
79 | #define DTLS1_COOKIE_LENGTH 256 | 83 | #define DTLS1_COOKIE_LENGTH 256 |