Wrapper around crypto functions. More...
#include "config.h"#include <stdbool.h>#include <stdio.h>#include "mutt/lib.h"#include "core/lib.h"#include "cryptglue.h"#include "lib.h"#include "crypt_mod.h"#include "module_data.h"#include "config/lib.h"#include "crypt_gpgme.h"#include "pgpkey.h"#include "email/lib.h"#include "autocrypt/lib.h"#include "globals.h"
Include dependency graph for cryptglue.c:Go to the source code of this file.
Macros | |
| #define | CRYPT_MOD_CALL_CHECK(mod_data, identifier, func) |
| #define | CRYPT_MOD_CALL(mod_data, identifier, func) |
Variables | |
| const struct CryptModuleSpecs | CryptModPgpClassic |
| CLI PGP - Implements CryptModuleSpecs -. | |
| const struct CryptModuleSpecs | CryptModSmimeClassic |
| CLI SMIME - Implements CryptModuleSpecs -. | |
| const struct CryptModuleSpecs | CryptModPgpGpgme |
| GPGME PGP - Implements CryptModuleSpecs -. | |
| const struct CryptModuleSpecs | CryptModSmimeGpgme |
| GPGME SMIME - Implements CryptModuleSpecs -. | |
Wrapper around crypto functions.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file cryptglue.c.
| #define CRYPT_MOD_CALL_CHECK | ( | mod_data, | |
| identifier, | |||
| func ) |
Definition at line 85 of file cryptglue.c.
| #define CRYPT_MOD_CALL | ( | mod_data, | |
| identifier, | |||
| func ) |
Definition at line 91 of file cryptglue.c.
| void crypt_init | ( | void | ) |
Initialise the crypto backends.
This calls CryptModuleSpecs::init()
Definition at line 99 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_cleanup | ( | struct NcryptModuleData * | mod_data | ) |
Clean up backend.
| mod_data | Ncrypt module data |
Definition at line 151 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_invoke_message | ( | SecurityFlags | type | ) |
Display an informative message.
| type | Crypto type, see SecurityFlags |
Show a message that a backend will be invoked.
Definition at line 174 of file cryptglue.c.
Here is the caller graph for this function:| bool crypt_has_module_backend | ( | SecurityFlags | type | ) |
Is there a crypto backend for a given type?
| type | Crypto type, see SecurityFlags |
| true | Backend is present |
| false | Backend is not present |
Definition at line 188 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_pgp_void_passphrase | ( | void | ) |
Wrapper for CryptModuleSpecs::void_passphrase()
Definition at line 211 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool crypt_pgp_valid_passphrase | ( | void | ) |
Wrapper for CryptModuleSpecs::valid_passphrase()
Definition at line 223 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::decrypt_mime()
Definition at line 237 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_pgp_invoke_getkeys | ( | struct Address * | addr | ) |
Wrapper for CryptModuleSpecs::pgp_invoke_getkeys()
Definition at line 309 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool crypt_pgp_check_traditional | ( | FILE * | fp, |
| struct Body * | b, | ||
| bool | just_one ) |
Wrapper for CryptModuleSpecs::pgp_check_traditional()
Definition at line 321 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct Body * crypt_pgp_traditional_encryptsign | ( | struct Body * | b, |
| SecurityFlags | flags, | ||
| char * | keylist ) |
Wrapper for CryptModuleSpecs::pgp_traditional_encryptsign()
Definition at line 335 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct Body * crypt_pgp_make_key_attachment | ( | void | ) |
Wrapper for CryptModuleSpecs::pgp_make_key_attachment()
Definition at line 349 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| char * crypt_pgp_find_keys | ( | struct AddressList * | addrlist, |
| bool | oppenc_mode ) |
Wrapper for CryptModuleSpecs::find_keys()
Definition at line 363 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::sign_message()
Definition at line 377 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct Body * crypt_pgp_encrypt_message | ( | struct Email * | e, |
| struct Body * | b, | ||
| char * | keylist, | ||
| int | sign, | ||
| const struct AddressList * | from ) |
Wrapper for CryptModuleSpecs::pgp_encrypt_message()
Definition at line 391 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_pgp_invoke_import | ( | const char * | fname | ) |
Wrapper for CryptModuleSpecs::pgp_invoke_import()
Definition at line 420 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::verify_one()
Definition at line 432 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| SecurityFlags crypt_pgp_send_menu | ( | struct Email * | e | ) |
Wrapper for CryptModuleSpecs::send_menu()
Definition at line 446 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_pgp_extract_key_from_attachment | ( | FILE * | fp, |
| struct Body * | b ) |
Wrapper for CryptModuleSpecs::pgp_extract_key_from_attachment()
Definition at line 460 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_pgp_set_sender | ( | const char * | sender | ) |
Wrapper for CryptModuleSpecs::set_sender()
Definition at line 472 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_smime_void_passphrase | ( | void | ) |
Wrapper for CryptModuleSpecs::void_passphrase()
Definition at line 484 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool crypt_smime_valid_passphrase | ( | void | ) |
Wrapper for CryptModuleSpecs::valid_passphrase()
Definition at line 496 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int crypt_smime_decrypt_mime | ( | FILE * | fp_in, |
| FILE ** | fp_out, | ||
| struct Body * | b, | ||
| struct Body ** | b_dec ) |
Wrapper for CryptModuleSpecs::decrypt_mime()
Definition at line 510 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_smime_getkeys | ( | struct Envelope * | env | ) |
Wrapper for CryptModuleSpecs::smime_getkeys()
Definition at line 538 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::smime_verify_sender()
Definition at line 550 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| char * crypt_smime_find_keys | ( | struct AddressList * | addrlist, |
| bool | oppenc_mode ) |
Wrapper for CryptModuleSpecs::find_keys()
Definition at line 564 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::sign_message()
Definition at line 578 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::smime_build_smime_entity()
Definition at line 592 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_smime_invoke_import | ( | const char * | infile, |
| const char * | mailbox ) |
Wrapper for CryptModuleSpecs::smime_invoke_import()
Definition at line 606 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::verify_one()
Definition at line 618 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| SecurityFlags crypt_smime_send_menu | ( | struct Email * | e | ) |
Wrapper for CryptModuleSpecs::send_menu()
Definition at line 632 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_smime_set_sender | ( | const char * | sender | ) |
Wrapper for CryptModuleSpecs::set_sender()
Definition at line 646 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function: