pkcs15-tool: print GUID for private key

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5310 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
vtarasov 2011-04-08 10:03:42 +00:00
parent b8b4c74d07
commit a5d1058157
1 changed files with 5 additions and 0 deletions

View File

@ -504,6 +504,7 @@ static void print_prkey_info(const struct sc_pkcs15_object *obj)
"neverExtract", "local"
};
const unsigned int af_count = NELEMENTS(access_flags);
char guid[39];
printf("Private %s Key [%s]\n", types[3 & obj->type], obj->label);
print_common_flags(obj);
@ -530,6 +531,10 @@ static void print_prkey_info(const struct sc_pkcs15_object *obj)
if (obj->auth_id.len != 0)
printf("\tAuth ID : %s\n", sc_pkcs15_print_id(&obj->auth_id));
printf("\tID : %s\n", sc_pkcs15_print_id(&prkey->id));
if (!sc_pkcs15_get_guid(p15card, obj, guid, sizeof(guid)))
printf("\tGUID : %s\n", guid);
}