42 #define FINGERPRINT_LEN SHA256_DIGEST_SIZE 45 #ifndef ALLOW_TRUST_OVERRIDE 47 #define ALLOW_TRUST_OVERRIDE 0 49 #define ALLOW_TRUST_OVERRIDE 1 57 0x9f, 0xaf, 0x71, 0x7b, 0x7f, 0x8c, 0xa2, 0xf9, 0x3c, 0x25, \ 58 0x6c, 0x79, 0xf8, 0xac, 0x55, 0x91, 0x89, 0x5d, 0x66, 0xd1, \ 59 0xff, 0x3b, 0xee, 0x63, 0x97, 0xa7, 0x0d, 0x29, 0xc6, 0x5e, \ 72 .description =
"Trusted root certificate fingerprints",
74 .type = &setting_type_hex,
102 static int initialised;
103 void *external =
NULL;
115 &external ) ) >= 0 ) {
Dynamic Host Configuration Protocol.
static struct setting trust_setting __setting(SETTING_CRYPTO, trust)
Root certificate fingerprint setting.
const int allow_trust_override
Flag indicating if root of trust may be overridden at runtime.
int fetch_raw_setting_copy(struct settings *settings, const struct setting *setting, void **data)
Fetch value of setting.
struct refcnt refcnt
Reference count.
static void rootcert_init(void)
Initialise root certificate.
struct x509_root root_certificates
Root certificates.
#define DHCP_EB_TRUST
Trusted root certficate fingerprints.
#define STARTUP_LATE
Late startup.
A startup/shutdown function.
#define ALLOW_TRUST_OVERRIDE
struct startup_fn rootcert_startup_fn __startup_fn(STARTUP_LATE)
Root certificate initialiser.
#define FINGERPRINT_LEN
Length of a root certificate fingerprint.
An X.509 root certificate list.
struct digest_algorithm sha256_algorithm
SHA-256 algorithm.
unsigned int count
Number of certificates.
#define REF_INIT(free_fn)
Initialise a static reference counter.
#define SETTING_CRYPTO
Cryptography settings.
const void * fingerprints
Certificate fingerprints.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static const uint8_t fingerprints[]
Root certificate fingerprints.
void ref_no_free(struct refcnt *refcnt __unused)
Do not free reference-counted object.
#define NULL
NULL pointer (VOID *)