diff options
Diffstat (limited to 'lib/softoken/pkcs11u.c')
-rw-r--r-- | lib/softoken/pkcs11u.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/softoken/pkcs11u.c b/lib/softoken/pkcs11u.c index 8ee69617b..7d969a1bc 100644 --- a/lib/softoken/pkcs11u.c +++ b/lib/softoken/pkcs11u.c @@ -716,7 +716,6 @@ sftk_modifyType(CK_ATTRIBUTE_TYPE type, CK_OBJECT_CLASS inClass) case CKA_PUBLIC_EXPONENT: case CKA_PRIVATE_EXPONENT: case CKA_PRIME: - case CKA_SUBPRIME: case CKA_BASE: case CKA_PRIME_1: case CKA_PRIME_2: @@ -767,6 +766,11 @@ sftk_modifyType(CK_ATTRIBUTE_TYPE type, CK_OBJECT_CLASS inClass) mtype = (inClass == CKO_DATA) ? SFTK_ALWAYS : SFTK_NEVER; break; + case CKA_SUBPRIME: + /* allow the CKA_SUBPRIME to be added to dh private keys */ + mtype = (inClass == CKO_PRIVATE_KEY) ? SFTK_ALWAYS : SFTK_NEVER; + break; + case CKA_SUBJECT: mtype = (inClass == CKO_CERTIFICATE) ? SFTK_NEVER : SFTK_ALWAYS; break; |