diff options
| author | Michael Brown | 2020-12-09 17:19:03 +0100 |
|---|---|---|
| committer | Michael Brown | 2020-12-09 17:45:50 +0100 |
| commit | 3475f9162b84ce21327244ebce20ae29db6d7ac8 (patch) | |
| tree | 39f7a31165e66cf82d92f5d8d536e9b18b248c76 /src/crypto/rootcert.c | |
| parent | [efi] Avoid using potentially uninitialised driver name in veto checks (diff) | |
| download | ipxe-3475f9162b84ce21327244ebce20ae29db6d7ac8.tar.gz ipxe-3475f9162b84ce21327244ebce20ae29db6d7ac8.tar.xz ipxe-3475f9162b84ce21327244ebce20ae29db6d7ac8.zip | |
[x509] Make root of trust a reference-counted structure
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/crypto/rootcert.c')
| -rw-r--r-- | src/crypto/rootcert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crypto/rootcert.c b/src/crypto/rootcert.c index 867ff50e8..0835ff071 100644 --- a/src/crypto/rootcert.c +++ b/src/crypto/rootcert.c @@ -71,6 +71,7 @@ static struct setting trust_setting __setting ( SETTING_CRYPTO, trust ) = { /** Root certificates */ struct x509_root root_certificates = { + .refcnt = REF_INIT ( ref_no_free ), .digest = &sha256_algorithm, .count = ( sizeof ( fingerprints ) / FINGERPRINT_LEN ), .fingerprints = fingerprints, |
