pkcs11-tool: #75: key for signature can be selected by object_id
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4214 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
a3177b727a
commit
741d8fc0b8
|
@ -610,7 +610,9 @@ int main(int argc, char * argv[])
|
|||
}
|
||||
|
||||
if (do_sign) {
|
||||
if (!find_object(session, CKO_PRIVATE_KEY, &object, NULL, 0, 0))
|
||||
if (!find_object(session, CKO_PRIVATE_KEY, &object,
|
||||
opt_object_id_len ? opt_object_id : NULL,
|
||||
opt_object_id_len, 0))
|
||||
util_fatal("Private key not found");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue