diff options
Diffstat (limited to 'trust/persist.c')
-rw-r--r-- | trust/persist.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/trust/persist.c b/trust/persist.c index ad80683..0e98b46 100644 --- a/trust/persist.c +++ b/trust/persist.c @@ -43,6 +43,7 @@ #include "persist.h" #include "pkcs11.h" #include "pkcs11x.h" +#include "types.h" #include "url.h" #include "basic.asn.h" @@ -716,6 +717,12 @@ p11_persist_write (p11_persist *persist, attrs[i].type == CKA_VALUE)) continue; + /* These are never written */ + if (attrs[i].type == CKA_TOKEN || + attrs[i].type == CKA_X_ORIGIN || + attrs[i].type == CKA_X_GENERATED) + continue; + if (attrs[i].ulValueLen == CK_UNAVAILABLE_INFORMATION) continue; |