diff options
author | Werner Koch <wk@gnupg.org> | 2014-10-19 14:09:04 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-10-19 14:09:04 +0200 |
commit | 1b8decc4767f0c55867327bdf3113204efcd19a7 (patch) | |
tree | a1ab7854633185ea8dab122ab303967b876435eb /g10/call-agent.h | |
parent | dirmngr: Allow building without LDAP support. (diff) | |
download | gnupg2-1b8decc4767f0c55867327bdf3113204efcd19a7.tar.xz gnupg2-1b8decc4767f0c55867327bdf3113204efcd19a7.zip |
gpg: Make card key generation work again.
* g10/call-agent.c (agent_scd_learn): Rename from agent_learn.
(agent_learn): New.
* g10/keygen.c (gen_card_key): Call new agent-learn.
--
Without a shadow key we can't create the self-signatures. Thus we
need to issue the learn command after each key generation.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/call-agent.h')
-rw-r--r-- | g10/call-agent.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h index 5b4cd0931..a99cac990 100644 --- a/g10/call-agent.h +++ b/g10/call-agent.h @@ -76,7 +76,10 @@ struct agent_card_genkey_s { void agent_release_card_info (struct agent_card_info_s *info); /* Return card info. */ -int agent_learn (struct agent_card_info_s *info); +int agent_scd_learn (struct agent_card_info_s *info); + +/* Let the agent learn about the current card. */ +gpg_error_t agent_learn (void); /* Update INFO with the attribute NAME. */ int agent_scd_getattr (const char *name, struct agent_card_info_s *info); |