aboutsummaryrefslogtreecommitdiffstats
path: root/g10/call-agent.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2013-02-06 05:01:23 +0000
committerNIIBE Yutaka <[email protected]>2013-02-12 05:19:12 +0000
commitb90506ea220860c89128f002bd593d0462a08d73 (patch)
treed67894d81203ed7adabe5d0ca56421c387500a74 /g10/call-agent.h
parentagent: Add KEYTOCARD command. (diff)
downloadgnupg-b90506ea220860c89128f002bd593d0462a08d73.tar.gz
gnupg-b90506ea220860c89128f002bd593d0462a08d73.zip
gpg: Implement card_store_subkey again.
* g10/call-agent.h (agent_keytocard): New. * g10/call-agent.c (agent_keytocard): New. * g10/card-util.c (replace_existing_key_p): Returns 1 when replace. (card_generate_subkey): Check return value of replace_existing_key_p. (card_store_subkey): Implement again using agent_keytocard.
Diffstat (limited to '')
-rw-r--r--g10/call-agent.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h
index de05d7afc..ab1d41a53 100644
--- a/g10/call-agent.h
+++ b/g10/call-agent.h
@@ -81,6 +81,10 @@ int agent_learn (struct agent_card_info_s *info);
/* Update INFO with the attribute NAME. */
int agent_scd_getattr (const char *name, struct agent_card_info_s *info);
+/* Send the KEYTOCARD command. */
+int agent_keytocard (const char *hexgrip, int keyno, int force,
+ const char *serialno, const char *timestamp);
+
/* Send a SETATTR command to the SCdaemon. */
int agent_scd_setattr (const char *name,
const unsigned char *value, size_t valuelen,