aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-03-17 16:37:08 +0000
committerWerner Koch <[email protected]>2025-03-17 16:37:08 +0000
commitf463586a9617392f68305a1059045ece1243475b (patch)
treeb53d5936f09ebddd1b769149424b3b7e1b19bdc7 /sm/gpgsm.h
parentgpgconf: Fix reload and kill of keyboxd. (diff)
downloadgnupg-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 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index 78efe2379..4a4bd5ac4 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -539,7 +539,7 @@ int gpgsm_agent_istrusted (ctrl_t ctrl, ksba_cert_t cert, const char *hexfpr,
struct rootca_flags_s *rootca_flags);
int gpgsm_agent_havekey (ctrl_t ctrl, const char *hexkeygrip);
int gpgsm_agent_marktrusted (ctrl_t ctrl, ksba_cert_t cert);
-int gpgsm_agent_learn (ctrl_t ctrl);
+int gpgsm_agent_learn (ctrl_t ctrl, const char *serialno);
int gpgsm_agent_passwd (ctrl_t ctrl, const char *hexkeygrip, const char *desc);
gpg_error_t gpgsm_agent_get_confirmation (ctrl_t ctrl, const char *desc);
gpg_error_t gpgsm_agent_send_nop (ctrl_t ctrl);