summaryrefslogtreecommitdiffstats
path: root/scd/command.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-03-18 16:30:10 +0100
committerWerner Koch <wk@gnupg.org>2021-03-18 16:30:10 +0100
commit85082a83c2c1bda50fe6b7aa2ac68cef4faca4c7 (patch)
tree04e177875cd718434a392b1fa466fa49b241a9d7 /scd/command.c
parentcard: Print PIN descriptions and fix number of printed retry counters. (diff)
downloadgnupg2-85082a83c2c1bda50fe6b7aa2ac68cef4faca4c7.tar.xz
gnupg2-85082a83c2c1bda50fe6b7aa2ac68cef4faca4c7.zip
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>
Diffstat (limited to 'scd/command.c')
-rw-r--r--scd/command.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/scd/command.c b/scd/command.c
index 77e253ddc..46474cedc 100644
--- a/scd/command.c
+++ b/scd/command.c
@@ -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)
{