da506f242d1777a07c8a960302b671ca2a6b3b73
[apps/madmutt.git] / lib-crypt / crypt-mod-pgp-gpgme.c
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 2004 g10 Code GmbH
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9
10 /* This is a crytpo module wrapping the gpgme based pgp code.  */
11
12 #include <lib-lib/lib-lib.h>
13
14 #include <lib-crypt/crypt-mod.h>
15 #include "crypt-gpgme.h"
16
17 struct crypt_module_specs crypt_mod_pgp_gpgme = { APPLICATION_PGP,
18     {
19         /* Common.  */
20         pgp_gpgme_init,
21         pgp_gpgme_decrypt_mime,
22         pgp_gpgme_application_handler,
23         pgp_gpgme_encrypted_handler,
24         pgp_gpgme_findkeys,
25         pgp_gpgme_sign_message,
26         pgp_gpgme_verify_one,
27         pgp_gpgme_send_menu,
28
29         /* PGP specific.  */
30         pgp_gpgme_encrypt_message,
31         NULL,                        /* pgp_make_key_attachment, */
32         pgp_gpgme_check_traditional,
33         NULL,                        /* pgp_traditional_encryptsign  */
34         NULL,                        /* pgp_invoke_getkeys  */
35         pgp_gpgme_invoke_import,     /* pgp_invoke_import  */
36         pgp_gpgme_from_attachment_list,
37                                      /* pgp_extract_keys_from_attachment_list  */
38
39         NULL,                        /* smime_getkeys */
40         NULL,                        /* smime_verify_sender */
41         NULL,                        /* smime_build_smime_entity */
42         NULL,                        /* smime_invoke_import */
43     }
44 };