X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-crypt%2Fgnupgparse.c;h=6be9f16e7352a6741e16c450c2d14bdcf4bf7e75;hb=4956024f0d540c5dd689444113307fa7f9dd4067;hp=c0c944bde9946c6a937a8cc3e44e5fba30d55172;hpb=2293e9bc5a94ef33dc596b064c607d6bed5ad1fd;p=apps%2Fmadmutt.git diff --git a/lib-crypt/gnupgparse.c b/lib-crypt/gnupgparse.c index c0c944b..6be9f16 100644 --- a/lib-crypt/gnupgparse.c +++ b/lib-crypt/gnupgparse.c @@ -18,32 +18,15 @@ * */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include -#include -#include +#include #include +#include +#include -#include "mutt.h" #include "pgp.h" #include "charset.h" - /**************** * Read the GNUPG keys. For now we read the complete keyring by * calling gnupg in a special mode. @@ -290,7 +273,7 @@ pgp_key_t pgp_get_candidates (pgp_ring_t keyring, string_list_t * hints) if ((devnull = open ("/dev/null", O_RDWR)) == -1) return NULL; - m_strreplace(&_chs, Charset); + m_strreplace(&_chs, MCharset.charset); thepid = pgp_invoke_list_keys (NULL, &fp, NULL, -1, -1, devnull, keyring, hints); @@ -327,7 +310,7 @@ pgp_key_t pgp_get_candidates (pgp_ring_t keyring, string_list_t * hints) if (ferror (fp)) mutt_perror ("fgets"); - fclose (fp); + m_fclose(&fp); mutt_wait_filter (thepid); close (devnull);