mirror of https://github.com/ipxe/ipxe.git
[crypto] Allow cross-certificate source to be configured at build time
Provide a build option CROSSCERT in config/crypto.h to allow the default cross-signed certificate source to be configured at build time. The ${crosscert} setting may still be used to reconfigure the cross-signed certificate source at runtime. Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/52/head
parent
c4e8c40227
commit
f8e1678b84
|
@ -50,6 +50,14 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||||
*/
|
*/
|
||||||
#define TIMESTAMP_ERROR_MARGIN ( ( 12 * 60 + 30 ) * 60 )
|
#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 <config/named.h>
|
#include <config/named.h>
|
||||||
#include NAMED_CONFIG(crypto.h)
|
#include NAMED_CONFIG(crypto.h)
|
||||||
#include <config/local/crypto.h>
|
#include <config/local/crypto.h>
|
||||||
|
|
|
@ -41,6 +41,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||||
#include <ipxe/crc32.h>
|
#include <ipxe/crc32.h>
|
||||||
#include <ipxe/ocsp.h>
|
#include <ipxe/ocsp.h>
|
||||||
#include <ipxe/validator.h>
|
#include <ipxe/validator.h>
|
||||||
|
#include <config/crypto.h>
|
||||||
|
|
||||||
/** @file
|
/** @file
|
||||||
*
|
*
|
||||||
|
@ -133,7 +134,7 @@ const struct setting crosscert_setting __setting ( SETTING_CRYPTO, crosscert )={
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Default cross-signed certificate source */
|
/** 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
|
* Append cross-signing certificates to certificate chain
|
||||||
|
|
Loading…
Reference in New Issue