If you do pkcs15-init -C with the onepin option, you can now specify --pin and --puk instead of --so-pin and --so-puk (also allowed for backward compatibility)

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1910 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2004-10-06 14:07:18 +00:00
parent 1249c9c2ab
commit 34e3a42c8f
1 changed files with 8 additions and 0 deletions

View File

@ -531,6 +531,14 @@ do_init_app(struct sc_profile *profile)
hints.p15card = NULL;
hints.info.pin = &info;
/* If it's the onepin option, we need the user PIN iso the SO PIN */
if (opt_profile && strstr(opt_profile, "+onepin")) {
if (opt_pins[0])
opt_pins[2] = opt_pins[0];
if (opt_pins[1])
opt_pins[3] = opt_pins[1];
}
memset(&args, 0, sizeof(args));
if (!opt_pins[2] && !opt_no_prompt && !opt_no_sopin) {
sc_pkcs15init_get_pin_info(profile,