From 87fac9911241310a4b601e126fa2e26b10bd370f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 31 Aug 2010 15:58:39 +0000 Subject: Import OpenPGP keys into the agent. --- g10/call-agent.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'g10/call-agent.h') diff --git a/g10/call-agent.h b/g10/call-agent.h index c8e920855..7495b2ac6 100644 --- a/g10/call-agent.h +++ b/g10/call-agent.h @@ -163,6 +163,14 @@ gpg_error_t agent_pkdecrypt (ctrl_t ctrl, const char *keygrip, const char *desc, gcry_sexp_t s_ciphertext, unsigned char **r_buf, size_t *r_buflen); +/* Retrieve a key encryption key. */ +gpg_error_t agent_keywrap_key (ctrl_t ctrl, int forexport, + void **r_kek, size_t *r_keklen); + +/* Send a key to the agent. */ +gpg_error_t agent_import_key (ctrl_t ctrl, const char *desc, + const void *key, size_t keylen); + #endif /*GNUPG_G10_CALL_AGENT_H*/ -- cgit v1.2.3