From 3f7f2b633b8d3a992308cfe37f0f4ae818b500f5 Mon Sep 17 00:00:00 2001 From: Gabriel Kihlman Date: Wed, 6 Mar 2019 14:31:04 +0100 Subject: [PATCH] Remove duplicate check on op_info.type != YKCS11_SIGN --- ykcs11/ykcs11.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ykcs11/ykcs11.c b/ykcs11/ykcs11.c index f698670..78b13ec 100644 --- a/ykcs11/ykcs11.c +++ b/ykcs11/ykcs11.c @@ -1863,12 +1863,6 @@ CK_DEFINE_FUNCTION(CK_RV, C_Sign)( goto sign_out; } - if (op_info.type != YKCS11_SIGN) { - DBG("Operation not initialized"); - rv = CKR_OPERATION_NOT_INITIALIZED; - goto sign_out; - } - if (session.info.state == CKS_RO_PUBLIC_SESSION || session.info.state == CKS_RW_PUBLIC_SESSION) { DBG("User is not logged in");