mirror of
https://github.com/ipxe/ipxe
synced 2026-01-24 04:59:13 +03:00
[x509] Make root of trust a reference-counted structure
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user