diff options
author | Kevin McCarthy <kevin@8t8.us> | 2015-01-23 10:33:32 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2015-01-23 10:33:32 -0800 |
commit | 1e63e245a45da26464158c23d9ee8fc513ae64f6 (patch) | |
tree | ad3f265f489536624f2f699756ac4008f0ff4f1d /crypt-mod-pgp-gpgme.c | |
parent | 19c4471e5632ff7de8d8e6657cc2a77174db7a24 (diff) |
Implement mail-key, Esc-K, for gpgme. (closes #3488)
This patch implements the make-key-attachment function for gpgme,
modeled after the pgp version.
It also adds an optional tempf parameter to data_object_to_tempfile() so
the function can be reused for make-key-attachment.
Diffstat (limited to 'crypt-mod-pgp-gpgme.c')
-rw-r--r-- | crypt-mod-pgp-gpgme.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypt-mod-pgp-gpgme.c b/crypt-mod-pgp-gpgme.c index 388056fd..1dced503 100644 --- a/crypt-mod-pgp-gpgme.c +++ b/crypt-mod-pgp-gpgme.c @@ -95,6 +95,11 @@ static BODY *crypt_mod_pgp_encrypt_message (BODY *a, char *keylist, int sign) return pgp_gpgme_encrypt_message (a, keylist, sign); } +static BODY *crypt_mod_pgp_make_key_attachment (char *tempf) +{ + return pgp_gpgme_make_key_attachment (tempf); +} + static void crypt_mod_pgp_set_sender (const char *sender) { gpgme_set_sender (sender); @@ -118,7 +123,7 @@ struct crypt_module_specs crypt_mod_pgp_gpgme = /* PGP specific. */ crypt_mod_pgp_encrypt_message, - NULL, /* pgp_make_key_attachment, */ + crypt_mod_pgp_make_key_attachment, crypt_mod_pgp_check_traditional, NULL, /* pgp_traditional_encryptsign */ NULL, /* pgp_invoke_getkeys */ |