diff options
author | Werner Koch <[email protected]> | 2010-04-20 17:57:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-04-20 17:57:50 +0000 |
commit | 21b0a955be63dc69625194ece8557e79b6ad60c2 (patch) | |
tree | 97de4727b46f1f2b5dac30142e5a408c898d48fc /g10/call-agent.h | |
parent | Add missing file. (diff) | |
download | gnupg-21b0a955be63dc69625194ece8557e79b6ad60c2.tar.gz gnupg-21b0a955be63dc69625194ece8557e79b6ad60c2.zip |
Generating an OpenPGP key cia gpg-agent basically works.
Diffstat (limited to '')
-rw-r--r-- | g10/call-agent.h | 18 |
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*/ |