File ocki-3.2_04_CKA_EC_POINT-is-not-required-in-the-ECDSA-private-ke.patch of Package openCryptoki.2906

From 4176f2ffa4b2b9ae1b17fea377949e6c1e10ab76 Mon Sep 17 00:00:00 2001
From: Vineetha Pai <vpishar@us.ibm.com>
Date: Tue, 29 Sep 2015 11:27:23 -0500
Subject: [PATCH] CKA_EC_POINT is not required in the ECDSA private key
 attribute, instead, CKA_VALUE is when importing a ECDSA private key.

Signed-off-by: Vineetha Pai <vpishar@us.ibm.com>
---
 usr/lib/pkcs11/common/key.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- opencryptoki.orig/usr/lib/pkcs11/common/key.c	2014-09-09 22:24:28.000000000 -0600
+++ opencryptoki/usr/lib/pkcs11/common/key.c	2015-10-01 15:23:32.007618000 -0600
@@ -2413,7 +2413,7 @@ ecdsa_priv_check_required_attributes( TE
       }
    }
 
-   found = template_attribute_find( tmpl, CKA_EC_POINT, &attr );
+   found = template_attribute_find( tmpl, CKA_VALUE, &attr );
    if (!found) {
       if (mode == MODE_CREATE){
          OCK_LOG_ERR(ERR_TEMPLATE_INCOMPLETE);
openSUSE Build Service is sponsored by