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 "config/lib.h"#include "email/lib.h"#include "autocrypt/lib.h"#include "crypt_gpgme.h"#include "globals.h"
Include dependency graph for cryptglue.c:Go to the source code of this file.
Macros | |
| #define | CRYPT_MOD_CALL_CHECK(identifier, func) |
| #define | CRYPT_MOD_CALL(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 | ( | identifier, | |
| func ) |
Definition at line 79 of file cryptglue.c.
| #define CRYPT_MOD_CALL | ( | identifier, | |
| func ) |
Definition at line 85 of file cryptglue.c.
| void crypt_init | ( | void | ) |
Initialise the crypto backends.
This calls CryptModuleSpecs::init()
Definition at line 93 of file cryptglue.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void crypt_cleanup | ( | void | ) |
Clean up backend.
Definition at line 141 of file cryptglue.c.
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 156 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 170 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 190 of file cryptglue.c.
Here is the caller graph for this function:| bool crypt_pgp_valid_passphrase | ( | void | ) |
Wrapper for CryptModuleSpecs::valid_passphrase()
Definition at line 199 of file cryptglue.c.
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::decrypt_mime()
Definition at line 210 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 273 of file cryptglue.c.
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 282 of file cryptglue.c.
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 293 of file cryptglue.c.
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 304 of file cryptglue.c.
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 315 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 326 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 337 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 363 of file cryptglue.c.
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::verify_one()
Definition at line 372 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 383 of file cryptglue.c.
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 394 of file cryptglue.c.
Here is the caller graph for this function:| void crypt_pgp_set_sender | ( | const char * | sender | ) |
Wrapper for CryptModuleSpecs::set_sender()
Definition at line 403 of file cryptglue.c.
Here is the caller graph for this function:| void crypt_smime_void_passphrase | ( | void | ) |
Wrapper for CryptModuleSpecs::void_passphrase()
Definition at line 412 of file cryptglue.c.
Here is the caller graph for this function:| bool crypt_smime_valid_passphrase | ( | void | ) |
Wrapper for CryptModuleSpecs::valid_passphrase()
Definition at line 421 of file cryptglue.c.
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 432 of file cryptglue.c.
Here is the caller graph for this function:| void crypt_smime_getkeys | ( | struct Envelope * | env | ) |
Wrapper for CryptModuleSpecs::smime_getkeys()
Definition at line 454 of file cryptglue.c.
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::smime_verify_sender()
Definition at line 463 of file cryptglue.c.
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 474 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 485 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 496 of file cryptglue.c.
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 507 of file cryptglue.c.
Here is the caller graph for this function:Wrapper for CryptModuleSpecs::verify_one()
Definition at line 516 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 527 of file cryptglue.c.
Here is the caller graph for this function:| void crypt_smime_set_sender | ( | const char * | sender | ) |
Wrapper for CryptModuleSpecs::set_sender()
Definition at line 538 of file cryptglue.c.
Here is the caller graph for this function: