Close the operation after sign is done.

This commit is contained in:
Alessio Di Mauro
2015-08-20 17:42:14 +02:00
parent 2420874125
commit 0c3c9c5a00
+3 -1
View File
@@ -1414,7 +1414,7 @@ CK_DEFINE_FUNCTION(CK_RV, C_Sign)(
} }
// TODO: check other conditions // TODO: check other conditions
ykpiv_rc r; // TODO: delete this ykpiv_rc r; // TODO: delete this ?
if (pSignature == NULL_PTR) { if (pSignature == NULL_PTR) {
// Just return the size of the signature // Just return the size of the signature
@@ -1473,6 +1473,8 @@ CK_DEFINE_FUNCTION(CK_RV, C_Sign)(
DBG(("Got %lu bytes back", *pulSignatureLen)); DBG(("Got %lu bytes back", *pulSignatureLen));
dump_hex(pSignature, *pulSignatureLen, stderr, CK_TRUE); dump_hex(pSignature, *pulSignatureLen, stderr, CK_TRUE);
op_info.type = YKCS11_NOOP; // TODO: anything to clear here?
DOUT; DOUT;
return CKR_OK; return CKR_OK;
} }