Deprecate TLS_MAX_VERSION, DTLS_MAX_VERSION and DTLS_MIN_VERSION
authorKurt Roeckx <kurt@roeckx.be>
Tue, 18 Sep 2018 20:17:14 +0000 (22:17 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Sat, 15 Dec 2018 11:52:02 +0000 (12:52 +0100)
Fixes: #7183

Reviewed-by: Matt Caswell <matt@openssl.org>
GH: #7260

include/openssl/dtls1.h
include/openssl/tls1.h

index 21b5252ea0a97f4689a58f62515a555762a66029..f717afbe51e7c9495348dba81cd1a3cfe492f8a0 100644 (file)
 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
index c57344ca0e556f35ffe8231130e1bed69ff034d0..166f15ad5cdeecdc0af23b4690af2578a8fb8c81 100644 (file)
@@ -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