mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: New option --use-only-openpgp-card
* g10/gpg.c (opts): Add option. (main): Set flag. * g10/options.h: Add flags.use_only_openpgp_card. * g10/call-agent.c (start_agent): Implement option. -- With the previous patch we switch to autoselect an application instead of requesting an openpgp card. This option allows to revert this in case of use use cases which expected the former behaviour. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
fe5c8de862
commit
c185f6dfbd
3 changed files with 15 additions and 1 deletions
|
@ -336,7 +336,9 @@ start_agent (ctrl_t ctrl, int flag_for_card)
|
|||
if (!(flag_for_card & FLAG_FOR_CARD_SUPPRESS_ERRORS))
|
||||
rc = warn_version_mismatch (agent_ctx, SCDAEMON_NAME, 2);
|
||||
if (!rc)
|
||||
rc = assuan_transact (agent_ctx, "SCD SERIALNO",
|
||||
rc = assuan_transact (agent_ctx,
|
||||
opt.flags.use_only_openpgp_card?
|
||||
"SCD SERIALNO openpgp" : "SCD SERIALNO",
|
||||
NULL, NULL, NULL, NULL,
|
||||
learn_status_cb, &info);
|
||||
if (rc && !(flag_for_card & FLAG_FOR_CARD_SUPPRESS_ERRORS))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue