Commit 04cd70c6 authored by Kurt Roeckx's avatar Kurt Roeckx
Browse files

Deprecate TLS_MAX_VERSION, DTLS_MAX_VERSION and DTLS_MIN_VERSION



Fixes: #7183

Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
GH: #7260
parent 5c587fb6
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -14,10 +14,14 @@
extern "C" {
#endif

#include <openssl/opensslconf.h>

# define DTLS1_VERSION                   0xFEFF
# define DTLS1_2_VERSION                 0xFEFD
# 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
+3 −1
Original line number Diff line number Diff line
@@ -28,7 +28,9 @@ extern "C" {
# define TLS1_1_VERSION                  0x0302
# define TLS1_2_VERSION                  0x0303
# define TLS1_3_VERSION                  0x0304
# if !OPENSSL_API_3
#  define TLS_MAX_VERSION                TLS1_3_VERSION
# endif

/* Special value for method supporting multiple versions */
# define TLS_ANY_VERSION                 0x10000