summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Brown2020-06-12 22:40:33 +0200
committerMichael Brown2020-06-12 22:40:33 +0200
commit2dac11eb1d8588d095be36152bb35b35637d387b (patch)
tree94bf7bb47e0110a22243ad6b48430b856b3342e5 /src/config
parent[efi] Attempt to connect our driver directly if ConnectController fails (diff)
downloadipxe-2dac11eb1d8588d095be36152bb35b35637d387b.tar.gz
ipxe-2dac11eb1d8588d095be36152bb35b35637d387b.tar.xz
ipxe-2dac11eb1d8588d095be36152bb35b35637d387b.zip
[tls] Allow a minimum TLS protocol version to be specified
The supported ciphers and digest algorithms may already be specified via config/crypto.h. Extend this to allow a minimum TLS protocol version to be specified. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/crypto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/crypto.h b/src/config/crypto.h
index 1edcdce45..d3c34a94d 100644
--- a/src/config/crypto.h
+++ b/src/config/crypto.h
@@ -9,6 +9,9 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+/** Minimum TLS version */
+#define TLS_VERSION_MIN TLS_VERSION_TLS_1_0
+
/** RSA public-key algorithm */
#define CRYPTO_PUBKEY_RSA