Fix: object type contains not only the class
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2496 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
6c20b6a6ad
commit
edb11bd2ea
|
@ -2329,7 +2329,7 @@ sc_pkcs15init_remove_object(sc_pkcs15_card_t *p15card,
|
||||||
sc_path_t path;
|
sc_path_t path;
|
||||||
int r = 0;
|
int r = 0;
|
||||||
|
|
||||||
switch(obj->type)
|
switch(obj->type & SC_PKCS15_TYPE_CLASS_MASK)
|
||||||
{
|
{
|
||||||
case SC_PKCS15_TYPE_PUBKEY:
|
case SC_PKCS15_TYPE_PUBKEY:
|
||||||
path = ((sc_pkcs15_pubkey_info_t *)obj->data)->path;
|
path = ((sc_pkcs15_pubkey_info_t *)obj->data)->path;
|
||||||
|
|
Loading…
Reference in New Issue