Skip to content

Commit

Permalink
nssdb: Add missing attrs for getting skipped attributes
Browse files Browse the repository at this point in the history
Fixes up the dfb480a 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 <[email protected]>
  • Loading branch information
Jakuje authored and simo5 committed Dec 12, 2024
1 parent dfb480a commit 97ae9ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/storage/nssdb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 97ae9ea

Please sign in to comment.