mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-31 11:41:32 +01:00
scd: Fix KEYINFO command with --data option.
* scd/command.c (cmd_keyinfo): Handle --data option correctly. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
a25c99b156
commit
54b88ae460
@ -2106,6 +2106,8 @@ cmd_keyinfo (assuan_context_t ctx, char *line)
|
||||
ctrl_t ctrl = assuan_get_pointer (ctx);
|
||||
card_t card;
|
||||
|
||||
opt_data = has_option (line, "--data");
|
||||
|
||||
cap = 0;
|
||||
keygrip_str = NULL;
|
||||
if (has_option (line, "--list"))
|
||||
@ -2117,10 +2119,7 @@ cmd_keyinfo (assuan_context_t ctx, char *line)
|
||||
else if (has_option (line, "--list=auth"))
|
||||
cap = GCRY_PK_USAGE_AUTH;
|
||||
else
|
||||
keygrip_str = line;
|
||||
|
||||
opt_data = has_option (line, "--data");
|
||||
line = skip_options (line);
|
||||
keygrip_str = skip_options (line);
|
||||
|
||||
if (opt_data)
|
||||
action = KEYGRIP_ACTION_SEND_DATA;
|
||||
|
Loading…
x
Reference in New Issue
Block a user