X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=crypt-mod-pgp-classic.c;h=c6c417f551bded0a0fadcbb61ddd5eb62aa4bc2f;hp=f5613eed6e789a5b9436591b1eb1ad57ffe7f5df;hb=99a84f88c0acee0c46e9525684b5187d4192168b;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/crypt-mod-pgp-classic.c b/crypt-mod-pgp-classic.c index f5613ee..c6c417f 100644 --- a/crypt-mod-pgp-classic.c +++ b/crypt-mod-pgp-classic.c @@ -1,19 +1,10 @@ -/* +/* + * Copyright notice from original mutt: * 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. */ /* @@ -42,13 +33,13 @@ static int crypt_mod_pgp_decrypt_mime (FILE * a, FILE ** b, BODY * c, { return pgp_decrypt_mime (a, b, c, d); } -static void crypt_mod_pgp_application_handler (BODY * m, STATE * s) +static int crypt_mod_pgp_application_handler (BODY * m, STATE * s) { - pgp_application_pgp_handler (m, s); + return pgp_application_pgp_handler (m, s); } -static char *crypt_mod_pgp_findkeys (ADDRESS * to, ADDRESS * cc, - ADDRESS * bcc) +static char *crypt_mod_pgp_findkeys (address_t * to, address_t * cc, + address_t * bcc) { return pgp_findKeys (to, cc, bcc); } @@ -91,12 +82,12 @@ static BODY *crypt_mod_pgp_traditional_encryptsign (BODY * a, int flags, return pgp_traditional_encryptsign (a, flags, keylist); } -static void crypt_mod_pgp_encrypted_handler (BODY * m, STATE * s) +static int crypt_mod_pgp_encrypted_handler (BODY * m, STATE * s) { - pgp_encrypted_handler (m, s); + return pgp_encrypted_handler (m, s); } -static void crypt_mod_pgp_invoke_getkeys (ADDRESS * addr) +static void crypt_mod_pgp_invoke_getkeys (address_t * addr) { pgp_invoke_getkeys (addr); }