Hi,
Please see attached the patch for fixing ep11 token returning two public
class objects on a key pair generation.
Regards,
Vineetha
From 84d77eed940bdae22288cabce1f671a7aab0e194 Mon Sep 17 00:00:00 2001
From: Vineetha Pai <vpis...@us.ibm.com>
Date: Wed, 2 Sep 2015 10:45:46 -0400
Subject: [PATCH] Fix ep11 token returning 2 public key object class in key pair
generation
Signed-off-by: Vineetha Pai <vpis...@us.ibm.com>
---
usr/lib/pkcs11/ep11_stdll/ep11_specific.c | 35 -----------------------------
1 files changed, 0 insertions(+), 35 deletions(-)
diff --git a/usr/lib/pkcs11/ep11_stdll/ep11_specific.c
b/usr/lib/pkcs11/ep11_stdll/ep11_specific.c
index 365d7cd..3e2489a 100644
--- a/usr/lib/pkcs11/ep11_stdll/ep11_specific.c
+++ b/usr/lib/pkcs11/ep11_stdll/ep11_specific.c
@@ -2832,41 +2832,6 @@ CK_RV ep11tok_generate_key_pair(SESSION * sess,
CK_MECHANISM_PTR pMechanism,
private_key_obj->name, public_key_obj,
private_key_obj);
}
- /* copy CKA_CLASS, CKA_KEY_TYPE to private template */
- if (template_attribute_find(public_key_obj->template, CKA_CLASS,
&attr)) {
- rc = build_attribute(attr->type, attr->pValue,
- attr->ulValueLen, &n_attr);
- if (rc != CKR_OK) {
- TRACE_ERROR("%s build_attribute failed with rc=0x%lx\n",
- __func__, rc);
- goto error;
- }
-
- rc = template_update_attribute(private_key_obj->template,
n_attr);
- if (rc != CKR_OK) {
- TRACE_ERROR("%s template_update_attribute failed with
rc=0x%lx\n",
- __func__, rc);
- goto error;
- }
- }
-
- if (template_attribute_find(public_key_obj->template, CKA_KEY_TYPE,
&attr)) {
- rc = build_attribute(attr->type, attr->pValue,
- attr->ulValueLen, &n_attr);
- if (rc != CKR_OK) {
- TRACE_ERROR("%s build_attribute failed with rc=0x%lx\n",
- __func__, rc);
- goto error;
- }
-
- rc = template_update_attribute(private_key_obj->template,
n_attr);
- if (rc != CKR_OK) {
- TRACE_ERROR("%s template_update_attribute failed with
rc=0x%lx\n",
- __func__, rc);
- goto error;
- }
- }
-
/* Keys should be fully constructed,
* assign object handles and store keys.
*/
--
1.7.1
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Opencryptoki-tech mailing list
Opencryptoki-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech