- 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:
jey 2001-10-21 21:22:16 +00:00
parent 9ea1e4be9e
commit 5414ed9bb0
1 changed files with 5 additions and 2 deletions

View File

@ -52,13 +52,16 @@ int main(int argc, char **argv) {
}
sc_pkcs15_print_card(p15_card);
#if 0
#if 1
i = sc_pkcs15_enum_private_keys(p15_card);
if (i < 0) {
fprintf(stderr, "Private key enumeration failed with %s\n", sc_strerror(i));
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;
#endif
#if 0