fix:
CK_MECHANISM rsa_mech = { CKM_RSA_PKCS_KEY_PAIR_GEN, NULL, 0 }; C_GenerateKeyPair(..., &rsa_mech, ..., ..., ..., ..., ..., ...); -> ... -> sc_pkcs15init_store_public_key -> sc_pkcs15init_store_data -> select_object_path -> sc_pkcs15_get_objects: return 0 -> CKR_OK ($ pkcs15-tool --list-public-keys: Public RSA Key [Public Key] ... Path : 3f0050000200 ) CK_MECHANISM gost_mech = { CKM_GOSTR3410_KEY_PAIR_GEN, NULL, 0 }; C_GenerateKeyPair(..., &gost_mech, ..., ..., ..., ..., ..., ...); -> ... -> sc_pkcs15init_store_public_key -> sc_pkcs15init_store_data -> select_object_path -> sc_pkcs15_get_objects: return 0 -> CKR_OK ($ pkcs15-tool --list-public-keys: Public RSA Key [Public Key] ... Path : 3f0050000200 Public GOSTR3410 Key [Public Key] ... Path : 3f0050000200 ) git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3923 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
7d935df1bc
commit
f2bc83b138
|
@ -2393,7 +2393,8 @@ select_object_path(sc_pkcs15_card_t *p15card, sc_profile_t *profile,
|
|||
const char *name;
|
||||
|
||||
SC_FUNC_CALLED(ctx, 3);
|
||||
r = sc_pkcs15_get_objects(p15card, obj->type, objs, 32);
|
||||
r = sc_pkcs15_get_objects(p15card, obj->type & SC_PKCS15_TYPE_CLASS_MASK,
|
||||
objs, sizeof(objs)/sizeof(objs[0]));
|
||||
SC_TEST_RET(ctx, r, "Get PKCS#15 objects error");
|
||||
nn_objs = r;
|
||||
|
||||
|
|
Loading…
Reference in New Issue