mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd:p15: Allow to use an auth object label with cmd CHECKPIN.
* scd/app-p15.c (prepare_verify_pin): Allow for PRKDF to be NULL. (make_pin_prompt): Ditto. (verify_pin): Ditto. (do_check_pin): Allow using the Label to specify a PIN. -- Note that a label may not work in all cases because we can't select the protected object's EF first. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
1ac189f2df
commit
85082a83c2
2 changed files with 46 additions and 21 deletions
|
@ -1590,7 +1590,11 @@ static const char hlp_checkpin[] =
|
|||
" For a definitive list, see the implementation in app-nks.c.\n"
|
||||
" Note that we call a PW2.* PIN a \"PUK\" despite that since TCOS\n"
|
||||
" 3.0 they are technically alternative PINs used to mutally\n"
|
||||
" unblock each other.";
|
||||
" unblock each other.\n"
|
||||
"\n"
|
||||
"For PKCS#15:\n"
|
||||
"\n"
|
||||
" The key's ID string or the PIN's label may be used.";
|
||||
static gpg_error_t
|
||||
cmd_checkpin (assuan_context_t ctx, char *line)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue