From 3475f9162b84ce21327244ebce20ae29db6d7ac8 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 9 Dec 2020 16:19:03 +0000 Subject: [x509] Make root of trust a reference-counted structure Signed-off-by: Michael Brown --- src/crypto/rootcert.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/crypto/rootcert.c') 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, -- cgit v1.2.3-55-g7522