diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2018-09-18 22:17:14 +0200 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2018-12-15 12:52:02 +0100 |
commit | 04cd70c6899c6b36517b2b07d7a12b2cceba1bef (patch) | |
tree | e3e6e25f48991ac9abbe2e1bd7d21e3c8703e954 /include | |
parent | Use (D)TLS_MAX_VERSION_INTERNAL internally (diff) | |
download | openssl-04cd70c6899c6b36517b2b07d7a12b2cceba1bef.tar.xz openssl-04cd70c6899c6b36517b2b07d7a12b2cceba1bef.zip |
Deprecate TLS_MAX_VERSION, DTLS_MAX_VERSION and DTLS_MIN_VERSION
Fixes: #7183
Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #7260
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/dtls1.h | 8 | ||||
-rw-r--r-- | include/openssl/tls1.h | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/include/openssl/dtls1.h b/include/openssl/dtls1.h index 21b5252ea0..f717afbe51 100644 --- a/include/openssl/dtls1.h +++ b/include/openssl/dtls1.h @@ -14,10 +14,14 @@ extern "C" { #endif +#include <openssl/opensslconf.h> + # define DTLS1_VERSION 0xFEFF # define DTLS1_2_VERSION 0xFEFD -# define DTLS_MIN_VERSION DTLS1_VERSION -# define DTLS_MAX_VERSION DTLS1_2_VERSION +# if !OPENSSL_API_3 +# define DTLS_MIN_VERSION DTLS1_VERSION +# define DTLS_MAX_VERSION DTLS1_2_VERSION +# endif # define DTLS1_VERSION_MAJOR 0xFE # define DTLS1_BAD_VER 0x0100 diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h index c57344ca0e..166f15ad5c 100644 --- a/include/openssl/tls1.h +++ b/include/openssl/tls1.h @@ -28,7 +28,9 @@ extern "C" { # define TLS1_1_VERSION 0x0302 # define TLS1_2_VERSION 0x0303 # define TLS1_3_VERSION 0x0304 -# define TLS_MAX_VERSION TLS1_3_VERSION +# if !OPENSSL_API_3 +# define TLS_MAX_VERSION TLS1_3_VERSION +# endif /* Special value for method supporting multiple versions */ # define TLS_ANY_VERSION 0x10000 |