X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_ssl_gnutls.c;h=8f6bd23d2bb550aa127cefa195ca749565184ddb;hp=1080fafcc7d9112d503ef2bc294d4ab53e1502ab;hb=a8477ebaa09990b3688164cbe5cf661c4189541d;hpb=3ea753c6005292b3e3153ac7e1f7b7d2363955c9 diff --git a/mutt_ssl_gnutls.c b/mutt_ssl_gnutls.c index 1080faf..8f6bd23 100644 --- a/mutt_ssl_gnutls.c +++ b/mutt_ssl_gnutls.c @@ -412,8 +412,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 (mutt_strcmp (linestr + pmatch[1].rm_so, hostname) == 0 && - mutt_strcmp (linestr + pmatch[2].rm_so, buf) == 0) { + if (str_cmp (linestr + pmatch[1].rm_so, hostname) == 0 && + str_cmp (linestr + pmatch[2].rm_so, buf) == 0) { regfree (&preg); FREE(&linestr); fclose (fp); @@ -485,7 +485,7 @@ static int tls_check_certificate (CONNECTION * conn) /* We only support X.509 certificates (not OpenPGP) at the moment */ if (gnutls_certificate_type_get (state) != GNUTLS_CRT_X509) { - mutt_error (_("Error certificate is not X.509")); + mutt_error (_("Certificate is not X.509")); mutt_sleep (2); return 0; }