X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-sys%2Fmutt_ssl.c;h=4c7137ae1ef286740981ecdd203911a6ee36c5b2;hp=bfb09a829791e1e77e6e450797b247561c1ed176;hb=9ed7a487e3a922f2cbb222961c2c9710c3a65f91;hpb=23e6291cb5d5b4cd2008403d8b628007fd75ff23 diff --git a/lib-sys/mutt_ssl.c b/lib-sys/mutt_ssl.c index bfb09a8..4c7137a 100644 --- a/lib-sys/mutt_ssl.c +++ b/lib-sys/mutt_ssl.c @@ -7,9 +7,7 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif +#include #ifdef USE_SSL @@ -18,12 +16,6 @@ #include #include -#include - -#include -#include -#include - #include #include @@ -518,7 +510,7 @@ static int check_certificate_by_digest (X509 * peercert) return 0; if (!X509_digest (peercert, EVP_sha1 (), peermd, &peermdlen)) { - fclose (fp); + m_fclose(&fp); return 0; } @@ -528,7 +520,7 @@ static int check_certificate_by_digest (X509 * peercert) break; } X509_free (cert); - fclose (fp); + m_fclose(&fp); return pass; } @@ -632,7 +624,7 @@ static int ssl_check_certificate (sslsockdata * data) if ((fp = fopen (SslCertFile, "a"))) { if (PEM_write_X509 (fp, data->cert)) done = 1; - fclose (fp); + m_fclose(&fp); } if (!done) { mutt_error (_("Warning: Couldn't save certificate"));