X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pgp.h;h=92d9fac6a5e51a0d57c2966e078813a522f08c70;hp=31718720d072cd10e4dc2515b004419a7d2fc8d8;hb=065004ef8c8451dcd9236467600d54d03d291c79;hpb=3d937534e7b1ee723f86594b5e4c64c95158a933 diff --git a/pgp.h b/pgp.h index 3171872..92d9fac 100644 --- a/pgp.h +++ b/pgp.h @@ -1,21 +1,12 @@ /* + * Copyright notice from original mutt: * Copyright (C) 1996,1997 Michael R. Elkins * Copyright (C) 1999-2000 Thomas Roessler * Copyright (C) 2004 g10 Code GmbH * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * 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, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. */ #ifdef CRYPT_BACKEND_CLASSIC_PGP @@ -26,7 +17,7 @@ /* prototypes */ -int pgp_use_gpg_agent(void); +int pgp_use_gpg_agent (void); int pgp_check_traditional (FILE *, BODY *, int); BODY *pgp_decrypt_part (BODY *, STATE *, FILE *, BODY *); @@ -49,11 +40,11 @@ pgp_key_t pgp_get_candidates (pgp_ring_t, LIST *); pgp_key_t pgp_getkeybyaddr (ADDRESS *, short, pgp_ring_t); pgp_key_t pgp_getkeybystr (char *, short, pgp_ring_t); -char *pgp_findKeys (ADDRESS *to, ADDRESS *cc, ADDRESS *bcc); +char *pgp_findKeys (ADDRESS * to, ADDRESS * cc, ADDRESS * bcc); void pgp_forget_passphrase (void); -void pgp_application_pgp_handler (BODY *, STATE *); -void pgp_encrypted_handler (BODY *, STATE *); +int pgp_application_pgp_handler (BODY *, STATE *); +int pgp_encrypted_handler (BODY *, STATE *); void pgp_extract_keys_from_attachment_list (FILE * fp, int tag, BODY * top); void pgp_void_passphrase (void); int pgp_valid_passphrase (void); @@ -61,33 +52,33 @@ int pgp_valid_passphrase (void); /* The PGP invocation interface - not really beautiful. */ -pid_t pgp_invoke_decode (FILE **pgpin, FILE **pgpout, FILE **pgperr, - int pgpinfd, int pgpoutfd, int pgperrfd, - const char *fname, short need_passphrase); -pid_t pgp_invoke_verify (FILE **pgpin, FILE **pgpout, FILE **pgperr, - int pgpinfd, int pgpoutfd, int pgperrfd, - const char *fname, const char *sig_fname); -pid_t pgp_invoke_decrypt (FILE **pgpin, FILE **pgpout, FILE **pgperr, - int pgpinfd, int pgpoutfd, int pgperrfd, - const char *fname); -pid_t pgp_invoke_sign (FILE **pgpin, FILE **pgpout, FILE **pgperr, - int pgpinfd, int pgpoutfd, int pgperrfd, - const char *fname); -pid_t pgp_invoke_encrypt (FILE **pgpin, FILE **pgpout, FILE **pgperr, - int pgpinfd, int pgpoutfd, int pgperrfd, - const char *fname, const char *uids, int sign); -pid_t pgp_invoke_export (FILE **pgpin, FILE **pgpout, FILE **pgperr, - int pgpinfd, int pgpoutfd, int pgperrfd, - const char *uids); -pid_t pgp_invoke_verify_key (FILE **pgpin, FILE **pgpout, FILE **pgperr, - int pgpinfd, int pgpoutfd, int pgperrfd, - const char *uids); -pid_t pgp_invoke_list_keys (FILE **pgpin, FILE **pgpout, FILE **pgperr, - int pgpinfd, int pgpoutfd, int pgperrfd, - pgp_ring_t keyring, LIST *hints); -pid_t pgp_invoke_traditional (FILE **pgpin, FILE **pgpout, FILE **pgperr, - int pgpinfd, int pgpoutfd, int pgperrfd, - const char *fname, const char *uids, int flags); +pid_t pgp_invoke_decode (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr, + int pgpinfd, int pgpoutfd, int pgperrfd, + const char *fname, short need_passphrase); +pid_t pgp_invoke_verify (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr, + int pgpinfd, int pgpoutfd, int pgperrfd, + const char *fname, const char *sig_fname); +pid_t pgp_invoke_decrypt (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr, + int pgpinfd, int pgpoutfd, int pgperrfd, + const char *fname); +pid_t pgp_invoke_sign (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr, + int pgpinfd, int pgpoutfd, int pgperrfd, + const char *fname); +pid_t pgp_invoke_encrypt (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr, + int pgpinfd, int pgpoutfd, int pgperrfd, + const char *fname, const char *uids, int sign); +pid_t pgp_invoke_export (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr, + int pgpinfd, int pgpoutfd, int pgperrfd, + const char *uids); +pid_t pgp_invoke_verify_key (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr, + int pgpinfd, int pgpoutfd, int pgperrfd, + const char *uids); +pid_t pgp_invoke_list_keys (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr, + int pgpinfd, int pgpoutfd, int pgperrfd, + pgp_ring_t keyring, LIST * hints); +pid_t pgp_invoke_traditional (FILE ** pgpin, FILE ** pgpout, FILE ** pgperr, + int pgpinfd, int pgpoutfd, int pgperrfd, + const char *fname, const char *uids, int flags); void pgp_invoke_import (const char *fname); @@ -100,6 +91,6 @@ BODY *pgp_traditional_encryptsign (BODY *, int, char *); BODY *pgp_encrypt_message (BODY *, char *, int); BODY *pgp_sign_message (BODY *); -int pgp_send_menu (HEADER *msg, int *redraw); +int pgp_send_menu (HEADER * msg, int *redraw); #endif /* CRYPT_BACKEND_CLASSIC_PGP */