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/tests | |
| 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/tests')
| -rw-r--r-- | src/tests/cms_test.c | 2 | ||||
| -rw-r--r-- | src/tests/x509_test.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/cms_test.c b/src/tests/cms_test.c index b805a9974..f35fa206d 100644 --- a/src/tests/cms_test.c +++ b/src/tests/cms_test.c @@ -1317,6 +1317,7 @@ static struct x509_chain empty_store = { /** Root certificate list containing the iPXE self-test root CA */ static struct x509_root test_root = { + .refcnt = REF_INIT ( ref_no_free ), .digest = &cms_test_algorithm, .count = 1, .fingerprints = root_crt_fingerprint, @@ -1331,6 +1332,7 @@ static uint8_t dummy_fingerprint[] = /** Certificate store containing a dummy fingerprint */ static struct x509_root dummy_root = { + .refcnt = REF_INIT ( ref_no_free ), .digest = &cms_test_algorithm, .count = 1, .fingerprints = dummy_fingerprint, diff --git a/src/tests/x509_test.c b/src/tests/x509_test.c index 2915b9068..256c3e85e 100644 --- a/src/tests/x509_test.c +++ b/src/tests/x509_test.c @@ -674,6 +674,7 @@ static struct x509_chain empty_store = { /** Root certificate list containing the iPXE self-test root CA */ static struct x509_root test_root = { + .refcnt = REF_INIT ( ref_no_free ), .digest = &x509_test_algorithm, .count = 1, .fingerprints = root_crt_fingerprint, @@ -681,6 +682,7 @@ static struct x509_root test_root = { /** Root certificate list containing the iPXE self-test intermediate CA */ static struct x509_root intermediate_root = { + .refcnt = REF_INIT ( ref_no_free ), .digest = &x509_test_algorithm, .count = 1, .fingerprints = intermediate_crt_fingerprint, @@ -695,6 +697,7 @@ static uint8_t dummy_fingerprint[] = /** Certificate store containing a dummy fingerprint */ static struct x509_root dummy_root = { + .refcnt = REF_INIT ( ref_no_free ), .digest = &x509_test_algorithm, .count = 1, .fingerprints = dummy_fingerprint, |
