From 7533e7fb56a30c6e0707eb1db6a9270c4f979fcc Mon Sep 17 00:00:00 2001 From: Alessio Di Mauro Date: Thu, 3 May 2018 10:18:36 +0200 Subject: [PATCH] Ignore CKA_PRIVATE in ykcs11 Newer version of pkcs11-tool set the CKA_PRIVATE attribute during generation making the operation fail. The attribute is now ignored. --- ykcs11/mechanisms.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ykcs11/mechanisms.c b/ykcs11/mechanisms.c index 1fc6339..df1db6c 100644 --- a/ykcs11/mechanisms.c +++ b/ykcs11/mechanisms.c @@ -438,6 +438,7 @@ CK_RV check_pubkey_template(op_info_t *op_info, CK_ATTRIBUTE_PTR templ, CK_ULONG case CKA_VERIFY: case CKA_WRAP: case CKA_DERIVE: + case CKA_PRIVATE: // Ignore these attributes for now break;