Deprecate TLS_MAX_VERSION, DTLS_MAX_VERSION and DTLS_MIN_VERSION
[openssl.git] / include / openssl / tls1.h
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 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
 
 /* Special value for method supporting multiple versions */
 # define TLS_ANY_VERSION                 0x10000