summaryrefslogtreecommitdiffstats
path: root/scd/app.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-03-03 09:45:49 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2022-03-03 09:45:49 +0100
commit44621120a269ba67408fe1ea067af8cbd1cbb35e (patch)
treee3933c6c5f69a9cceda3f924911f0a0627d8faad /scd/app.c
parentg10/encrypt: use iobuf_copy instead of manual iobuf_read/iobuf_write (diff)
downloadgnupg2-44621120a269ba67408fe1ea067af8cbd1cbb35e.tar.xz
gnupg2-44621120a269ba67408fe1ea067af8cbd1cbb35e.zip
scd: Add --challenge-response option to PK_AUTH for OpenPGP card.
* scd/app-openpgp.c (rmd160_prefix, sha1_prefix, sha224_prefix) (sha256_prefix, sha384_prefix, sha512_prefix): Move the scope up. (gen_challenge): New. (do_auth): Support challenge-response check if it signs correctly. * scd/app.c (app_auth): Remove the check INDATA and INDATALEN. * scd/command.c (cmd_pkauth): Support --challenge-response option. -- GnuPG-bug-id: 5862 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'scd/app.c')
-rw-r--r--scd/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app.c b/scd/app.c
index 5fcf8fb87..2de4f129c 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -2053,7 +2053,7 @@ app_auth (card_t card, ctrl_t ctrl, const char *keyidstr,
{
gpg_error_t err;
- if (!indata || !indatalen || !outdata || !outdatalen || !pincb)
+ if (!outdata || !outdatalen || !pincb)
return gpg_error (GPG_ERR_INV_VALUE);
if ((err = maybe_switch_app (ctrl, card, keyidstr)))