summaryrefslogtreecommitdiffstats
path: root/src/crypto/rootcert.c
diff options
context:
space:
mode:
authorMichael Brown2020-12-09 17:19:03 +0100
committerMichael Brown2020-12-09 17:45:50 +0100
commit3475f9162b84ce21327244ebce20ae29db6d7ac8 (patch)
tree39f7a31165e66cf82d92f5d8d536e9b18b248c76 /src/crypto/rootcert.c
parent[efi] Avoid using potentially uninitialised driver name in veto checks (diff)
downloadipxe-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.c1
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,