X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_ssl_gnutls.c;h=2b44e2611567026e0551d58caa0c4cf132415312;hp=91b03dde04903dfac6b329699a725af5213e3d39;hb=c6b9d35ed9361e4defab9762a7480d5126405ae9;hpb=b3cb6ed8d36c550a2e589910ce51bbc8352ff57c diff --git a/mutt_ssl_gnutls.c b/mutt_ssl_gnutls.c index 91b03dd..2b44e26 100644 --- a/mutt_ssl_gnutls.c +++ b/mutt_ssl_gnutls.c @@ -21,6 +21,9 @@ #endif #include +#include +#include +#include #include "mutt.h" #include "mutt_socket.h" @@ -28,9 +31,6 @@ #include "mutt_menu.h" #include "mutt_ssl.h" -#include "lib/mem.h" -#include "lib/str.h" -#include "lib/intl.h" #include "lib/rx.h" typedef struct _tlssockdata { @@ -416,8 +416,8 @@ static int tls_check_stored_hostname (const gnutls_datum * cert, if (regexec (&preg, linestr, 3, pmatch, 0) == 0) { linestr[pmatch[1].rm_eo] = '\0'; linestr[pmatch[2].rm_eo] = '\0'; - if (str_cmp (linestr + pmatch[1].rm_so, hostname) == 0 && - str_cmp (linestr + pmatch[2].rm_so, buf) == 0) { + if (m_strcmp(linestr + pmatch[1].rm_so, hostname) == 0 && + m_strcmp(linestr + pmatch[2].rm_so, buf) == 0) { regfree (&preg); p_delete(&linestr); fclose (fp);