X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fgnutls.c;h=af46171f39199b605af814f602dc1f30a866687c;hb=4a08094db88011153adadbf995103770b20d2a31;hp=57d4ad5c5dca739673df569f3adbc3ccf63fd68e;hpb=1daacbb296aa045fbf50ec04494a071f3a702487;p=wget diff --git a/src/gnutls.c b/src/gnutls.c index 57d4ad5c..af46171f 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -1,5 +1,6 @@ /* SSL support via GnuTLS library. - Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, + Inc. This file is part of GNU Wget. @@ -180,7 +181,7 @@ static struct transport_implementation wgnutls_transport = { }; bool -ssl_connect (int fd) +ssl_connect (int fd) { static const int cert_type_priority[] = { GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0 @@ -223,7 +224,7 @@ ssl_check_certificate (int fd, const char *host) if (err < 0) { logprintf (LOG_NOTQUIET, _("%s: No certificate presented by %s.\n"), - severity, escnonprint (host)); + severity, quotearg_style (escape_quoting_style, host)); success = false; goto out; } @@ -231,19 +232,19 @@ ssl_check_certificate (int fd, const char *host) if (status & GNUTLS_CERT_INVALID) { logprintf (LOG_NOTQUIET, _("%s: The certificate of %s is not trusted.\n"), - severity, quote (escnonprint (host))); + severity, quote (host)); success = false; } if (status & GNUTLS_CERT_SIGNER_NOT_FOUND) { logprintf (LOG_NOTQUIET, _("%s: The certificate of %s hasn't got a known issuer.\n"), - severity, quote (escnonprint (host))); + severity, quote (host)); success = false; } if (status & GNUTLS_CERT_REVOKED) { logprintf (LOG_NOTQUIET, _("%s: The certificate of %s has been revoked.\n"), - severity, quote (escnonprint (host))); + severity, quote (host)); success = false; } @@ -290,8 +291,8 @@ ssl_check_certificate (int fd, const char *host) if (!gnutls_x509_crt_check_hostname (cert, host)) { logprintf (LOG_NOTQUIET, - _("The certificate's owner does not match hostname '%s'\n"), - host); + _("The certificate's owner does not match hostname %s\n"), + quote (host)); success = false; } gnutls_x509_crt_deinit (cert);