* please see the file GPL in the top level source directory.
*/
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include <lib-lib/lib-lib.h>
#ifdef USE_SSL
#include <openssl/err.h>
#include <openssl/rand.h>
-#include <string.h>
-
-#include <lib-lib/mem.h>
-#include <lib-lib/str.h>
-#include <lib-lib/macros.h>
-
#include <lib-ui/curses.h>
#include <lib-ui/menu.h>
if (data) {
SSL_shutdown (data->ssl);
-#if 0
- X509_free (data->cert);
-#endif
SSL_free (data->ssl);
SSL_CTX_free (data->ctx);
p_delete(&conn->sockdata);
return 0;
if (!X509_digest (peercert, EVP_sha1 (), peermd, &peermdlen)) {
- fclose (fp);
+ m_fclose(&fp);
return 0;
}
break;
}
X509_free (cert);
- fclose (fp);
+ m_fclose(&fp);
return pass;
}
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"));