/
githubmirror
/
ipxe
Обзор
Документация
Войти
/
githubmirror
/
ipxe
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/config/crypto.h
123 строки
3 KB
Michael Brown
[crypto] Make maximum TLS version a configurable option
02 июл 2026, 13:43
02 июл 2026, 13:43
eaef9a0
Код
Авторство
О чём код?
#ifndef CONFIG_CRYPTO_H #define CONFIG_CRYPTO_H /** @file * * Cryptographic configuration * */ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_SECBOOT ( PERMITTED ); /** 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 /** DHE key exchange algorithm */ #define CRYPTO_EXCHANGE_DHE /** ECDHE key exchange algorithm */ #define CRYPTO_EXCHANGE_ECDHE /** RSA public-key algorithm */ #define CRYPTO_PUBKEY_RSA /** ECDSA public-key algorithm */ #define CRYPTO_PUBKEY_ECDSA /** AES-CBC block cipher */ #define CRYPTO_CIPHER_AES_CBC /** AES-GCM block cipher */ #define CRYPTO_CIPHER_AES_GCM /** MD4 digest algorithm */ //#define CRYPTO_DIGEST_MD4 /** MD5 digest algorithm */ //#define CRYPTO_DIGEST_MD5 /** SHA-1 digest algorithm */ #define CRYPTO_DIGEST_SHA1 /** SHA-224 digest algorithm */ #define CRYPTO_DIGEST_SHA224 /** SHA-256 digest algorithm */ #define CRYPTO_DIGEST_SHA256 /** SHA-384 digest algorithm */ #define CRYPTO_DIGEST_SHA384 /** SHA-512 digest algorithm */ #define CRYPTO_DIGEST_SHA512 /** SHA-512/224 digest algorithm */ //#define CRYPTO_DIGEST_SHA512_224 /** SHA-512/256 digest algorithm */ //#define CRYPTO_DIGEST_SHA512_256 /** X25519 elliptic curve */ #define CRYPTO_CURVE_X25519 /** P-256 elliptic curve */ #define CRYPTO_CURVE_P256 /** P-384 elliptic curve */ #define CRYPTO_CURVE_P384 /** FFDHE2048 finite field */ #define CRYPTO_GROUP_FFDHE2048 /** FFDHE3072 finite field */ #define CRYPTO_GROUP_FFDHE3072 /** FFDHE4096 finite field */ #define CRYPTO_GROUP_FFDHE4096 /** MODP2048 finite field */ #define CRYPTO_GROUP_MODP2048 /** MODP3072 finite field */ #define CRYPTO_GROUP_MODP3072 /** MODP4096 finite field */ #define CRYPTO_GROUP_MODP4096 /** Margin of error (in seconds) allowed in signed timestamps * * We default to allowing a reasonable margin of error: 12 hours to * allow for the local time zone being non-GMT, plus 30 minutes to * allow for general clock drift. */ #define TIMESTAMP_ERROR_MARGIN ( ( 12 * 60 + 30 ) * 60 ) /** Default cross-signed certificate source * * This is the default location from which iPXE will attempt to * download cross-signed certificates in order to complete a * certificate chain. */ #define CROSSCERT "http://ca.ipxe.org/auto" /** Perform OCSP checks when applicable * * Some CAs provide non-functional OCSP servers, and some clients are * forced to operate on networks without access to the OCSP servers. * Allow the user to explicitly disable the use of OCSP checks. */ #define OCSP_CHECK #include <config/named.h> #include NAMED_CONFIG(crypto.h) #include <config/local/crypto.h> #include LOCAL_NAMED_CONFIG(crypto.h) #endif /* CONFIG_CRYPTO_H */