diff options
author | Werner Koch <[email protected]> | 2025-03-17 16:37:08 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-03-17 16:37:08 +0000 |
commit | f463586a9617392f68305a1059045ece1243475b (patch) | |
tree | b53d5936f09ebddd1b769149424b3b7e1b19bdc7 /agent/agent.h | |
parent | gpgconf: Fix reload and kill of keyboxd. (diff) | |
download | gnupg-f463586a9617392f68305a1059045ece1243475b.tar.gz gnupg-f463586a9617392f68305a1059045ece1243475b.zip |
gpgsm: Extend --learn-card by an optional s/n argument.
* agent/command.c (cmd_learn): Allow for s/n argument.
* agent/learncard.c (agent_handle_learn): Ditto.
* agent/call-scd.c (agent_card_learn): Ditto. Pass it on to scd.
* scd/command.c (cmd_switchcard): Factor most code out to ...
(switchcard_core): new.
(cmd_learn): Add option --demand to specify a s/n.
* sm/gpgsm.c (main): Allow a s/n argument for --learn-card.
--
This help Kleopatra to get a stable certificate listing.
GnuPG-bug-id: 7379
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/agent/agent.h b/agent/agent.h index 42b167726..5d426f6b8 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -731,7 +731,7 @@ int agent_tpm2d_pkdecrypt (ctrl_t ctrl, const unsigned char *cipher, char **r_buf, size_t *r_len); /*-- call-scd.c --*/ -int agent_card_learn (ctrl_t ctrl, +int agent_card_learn (ctrl_t ctrl, const char *demand_sn, void (*kpinfo_cb)(void*, const char *), void *kpinfo_cb_arg, void (*certinfo_cb)(void*, const char *), @@ -780,7 +780,8 @@ gpg_error_t agent_card_keyinfo (ctrl_t ctrl, const char *keygrip, int cap, struct card_key_info_s **result); /*-- learncard.c --*/ -int agent_handle_learn (ctrl_t ctrl, int send, void *assuan_context, int force); +int agent_handle_learn (ctrl_t ctrl, int send, void *assuan_context, + int force, const char *demand_sn); /*-- cvt-openpgp.c --*/ |