mutt stable branch with some hacks
at master 58 lines 2.1 kB view raw
1/* 2 * Copyright (C) 2004 g10 Code GmbH 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 19#ifndef CRYPT_GPGME_H 20#define CRYPT_GPGME_H 21 22#include "mutt_crypt.h" 23 24void pgp_gpgme_init (void); 25void smime_gpgme_init (void); 26 27char *pgp_gpgme_findkeys (ADDRESS *adrlist, int oppenc_mode); 28char *smime_gpgme_findkeys (ADDRESS *adrlist, int oppenc_mode); 29 30BODY *pgp_gpgme_encrypt_message (BODY *a, char *keylist, int sign); 31BODY *smime_gpgme_build_smime_entity (BODY *a, char *keylist); 32 33int pgp_gpgme_decrypt_mime (FILE *fpin, FILE **fpout, BODY *b, BODY **cur); 34int smime_gpgme_decrypt_mime (FILE *fpin, FILE **fpout, BODY *b, BODY **cur); 35 36int pgp_gpgme_check_traditional (FILE *fp, BODY *b, int tagged_only); 37void pgp_gpgme_invoke_import (const char* fname); 38 39int pgp_gpgme_application_handler (BODY *m, STATE *s); 40int smime_gpgme_application_handler (BODY *a, STATE *s); 41int pgp_gpgme_encrypted_handler (BODY *a, STATE *s); 42 43BODY *pgp_gpgme_make_key_attachment (char *tempf); 44 45BODY *pgp_gpgme_sign_message (BODY *a); 46BODY *smime_gpgme_sign_message (BODY *a); 47 48int pgp_gpgme_verify_one (BODY *sigbdy, STATE *s, const char *tempfile); 49int smime_gpgme_verify_one (BODY *sigbdy, STATE *s, const char *tempfile); 50 51int pgp_gpgme_send_menu (HEADER *msg, int *redraw); 52int smime_gpgme_send_menu (HEADER *msg, int *redraw); 53 54int smime_gpgme_verify_sender (HEADER *h); 55 56void mutt_gpgme_set_sender (const char *sender); 57 58#endif