Remove redundant sections from mechanism check
Signed-off-by: Klaus Heinrich Kiwi <[email protected]>
---
usr/lib/pkcs11/common/key_mgr.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/usr/lib/pkcs11/common/key_mgr.c b/usr/lib/pkcs11/common/key_mgr.c
index 8f87b84..d5a690c 100755
--- a/usr/lib/pkcs11/common/key_mgr.c
+++ b/usr/lib/pkcs11/common/key_mgr.c
@@ -1069,10 +1069,6 @@ key_mgr_unwrap_key( SESSION * sess,
switch (mech->mechanism) {
case CKM_RSA_PKCS:
case CKM_RSA_X_509:
- keyclass = CKO_SECRET_KEY;
- found_class = TRUE;
- break;
-
#if !(NOCMF)
case CKM_CDMF_ECB:
case CKM_CDMF_CBC:
@@ -1131,12 +1127,6 @@ CKO_PRIVATE_KEY)){
switch (mech->mechanism) {
case CKM_RSA_PKCS:
case CKM_RSA_X_509:
- if (keyclass != CKO_SECRET_KEY){
- st_err_log(49, __FILE__, __LINE__);
- return CKR_TEMPLATE_INCONSISTENT;
- }
- break;
-
#if !(NOCMF)
case CKM_CDMF_ECB:
case CKM_CDMF_CBC:
--
1.7.2
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech