The minimum supported TLS version is already configurable via
TLS_VERSION_MIN in config/crypto.h, but changing the maximum TLS
version currently requires editing the source code proper. This makes
it cumbersome to test older TLS versions, and therefore increases the
chances that support for older versions will end up breaking as new
features are added.
Move TLS_VERSION_MAX from include/ipxe/tls.h to config/crypto.h to
ease the process of testing older TLS versions.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
/** Minimum TLS version */
#define TLS_VERSION_MIN TLS_VERSION_TLS_1_1
+/** Maximum TLS version */
+#define TLS_VERSION_MAX TLS_VERSION_TLS_1_2
+
/** Public-key exchange algorithm */
#define CRYPTO_EXCHANGE_PUBKEY
/** TLS version 1.2 */
#define TLS_VERSION_TLS_1_2 0x0303
-/** Maximum supported TLS version */
-#define TLS_VERSION_MAX TLS_VERSION_TLS_1_2
-
/** Change cipher content type */
#define TLS_TYPE_CHANGE_CIPHER 20