From 97ae9ea01968add204b0ca4edf14a1eaa2eb6c69 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 12 Dec 2024 11:33:43 +0100 Subject: [PATCH] nssdb: Add missing attrs for getting skipped attributes Fixes up the dfb480a384be9762ef01487a355a80d9e47e2b55 which started checking the certificate type on the certificates for pulling default attributes that can not be stored in the NSS DB. Signed-off-by: Jakub Jelen --- src/storage/nssdb/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/nssdb/mod.rs b/src/storage/nssdb/mod.rs index de27508..76ed48f 100644 --- a/src/storage/nssdb/mod.rs +++ b/src/storage/nssdb/mod.rs @@ -842,6 +842,7 @@ impl Storage for NSSStorage { * is not a key, the attribute will simply not be returned * in that case */ attrs.add_missing_ulong(CKA_KEY_TYPE, &dnm); + attrs.add_missing_ulong(CKA_CERTIFICATE_TYPE, &dnm); attrs.add_missing_ulong(CKA_EXTRACTABLE, &dnm); attrs.add_missing_ulong(CKA_SENSITIVE, &dnm); /* we can not query a DB for these */