diff options
author | NIIBE Yutaka <[email protected]> | 2022-03-04 01:11:38 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-03-04 01:11:38 +0000 |
commit | 58e6990eaabb7302cc8cc979378e6fffe36459b7 (patch) | |
tree | 08585b93bfdd753c9e0ce681d5cc61acc158edd9 /scd/command.c | |
parent | scd: Add --challenge-response option to PK_AUTH for OpenPGP card. (diff) | |
download | gnupg-58e6990eaabb7302cc8cc979378e6fffe36459b7.tar.gz gnupg-58e6990eaabb7302cc8cc979378e6fffe36459b7.zip |
scd: Fix PK_AUTH with --challenge-response option.
* scd/app.c (app_auth): It's only APPTYPE_OPENPGP which supports
the challenge response interaction.
* scd/command.c (cmd_pkauth): It only wants if it works or not.
--
GnuPG-bug-id: 5862
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/command.c')
-rw-r--r-- | scd/command.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scd/command.c b/scd/command.c index 392b678c4..28ab0f3c4 100644 --- a/scd/command.c +++ b/scd/command.c @@ -1133,10 +1133,9 @@ cmd_pkauth (assuan_context_t ctx, char *line) } else { - rc = assuan_send_data (ctx, outdata, outdatalen); + if (!challenge_response) + rc = assuan_send_data (ctx, outdata, outdatalen); xfree (outdata); - if (rc) - return rc; /* that is already an assuan error code */ } return rc; |