diff --git a/src/config/crypto.h b/src/config/crypto.h index bccfc04b..8f885c55 100644 --- a/src/config/crypto.h +++ b/src/config/crypto.h @@ -50,6 +50,14 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); */ #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" + #include #include NAMED_CONFIG(crypto.h) #include diff --git a/src/net/validator.c b/src/net/validator.c index db968398..57ad0e7b 100644 --- a/src/net/validator.c +++ b/src/net/validator.c @@ -41,6 +41,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include #include #include +#include /** @file * @@ -133,7 +134,7 @@ const struct setting crosscert_setting __setting ( SETTING_CRYPTO, crosscert )={ }; /** Default cross-signed certificate source */ -static const char crosscert_default[] = "http://ca.ipxe.org/auto"; +static const char crosscert_default[] = CROSSCERT; /** * Append cross-signing certificates to certificate chain