- added struct sc_path
- implemented private key enumeration git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@17 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
9ea1e4be9e
commit
5414ed9bb0
|
@ -52,13 +52,16 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
sc_pkcs15_print_card(p15_card);
|
sc_pkcs15_print_card(p15_card);
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
i = sc_pkcs15_enum_private_keys(p15_card);
|
i = sc_pkcs15_enum_private_keys(p15_card);
|
||||||
if (i < 0) {
|
if (i < 0) {
|
||||||
fprintf(stderr, "Private key enumeration failed with %s\n", sc_strerror(i));
|
fprintf(stderr, "Private key enumeration failed with %s\n", sc_strerror(i));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
printf("%d private keys found!\n", i);
|
||||||
|
for (i = 0; i < p15_card->prkey_count; i++) {
|
||||||
|
sc_pkcs15_print_prkey_info(&p15_card->prkey_info[i]);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Reference in New Issue