aboutsummaryrefslogtreecommitdiffstats
path: root/g10/call-agent.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/call-agent.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h
index 9088e4a5b..d42131f47 100644
--- a/g10/call-agent.h
+++ b/g10/call-agent.h
@@ -140,6 +140,24 @@ gpg_error_t gpg_agent_get_confirmation (const char *desc);
/* Return the S2K iteration count as computed by gpg-agent. */
gpg_error_t agent_get_s2k_count (unsigned long *r_count);
+/* Check whether a secret key with HEXKEYGRIP is available. */
+gpg_error_t agent_havekey (ctrl_t ctrl, const char *hexkeygrip);
+
+/* Return infos about the secret key with HEXKEYGRIP. */
+gpg_error_t agent_get_keyinfo (ctrl_t ctrl, const char *hexkeygrip,
+ char **r_serialno);
+
+/* Generate a new key. */
+gpg_error_t agent_genkey (ctrl_t ctrl, const char *keyparms,
+ gcry_sexp_t *r_pubkey);
+
+/* Create a sigtnature. */
+gpg_error_t agent_pksign (ctrl_t ctrl, const char *keygrip, const char *desc,
+ unsigned char *digest, size_t digestlen,
+ int digestalgo,
+ gcry_sexp_t *r_sigval);
+
+
#endif /*GNUPG_G10_CALL_AGENT_H*/