X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fgnutls.c;h=5480cde34392b31b52dd1210e5b901678bdf1e5c;hp=7f0153e553b94c4112ce8c67802afbbc47dd20d9;hb=766df9d4e9392045a4e5c730ed81e599b509557a;hpb=86395b297b58c8c9b43d7ca8c42b831d4926dac6 diff --git a/src/gnutls.c b/src/gnutls.c index 7f0153e5..5480cde3 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -1,5 +1,5 @@ /* SSL support via GnuTLS library. - Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of GNU Wget. @@ -27,7 +27,7 @@ Corresponding Source for a non-source form of such a combination shall include the source code for the parts of OpenSSL used as well as that of the covered work. */ -#include +#include "wget.h" #include #include @@ -40,7 +40,6 @@ as that of the covered work. */ #include #include -#include "wget.h" #include "utils.h" #include "connect.h" #include "url.h" @@ -224,27 +223,27 @@ 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; } if (status & GNUTLS_CERT_INVALID) { - logprintf (LOG_NOTQUIET, _("%s: The certificate of `%s' is not trusted.\n"), - severity, escnonprint (host)); + logprintf (LOG_NOTQUIET, _("%s: The certificate of %s is not trusted.\n"), + 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, escnonprint (host)); + logprintf (LOG_NOTQUIET, _("%s: The certificate of %s hasn't got a known issuer.\n"), + severity, quote (host)); success = false; } if (status & GNUTLS_CERT_REVOKED) { - logprintf (LOG_NOTQUIET, _("%s: The certificate of `%s' has been revoked.\n"), - severity, escnonprint (host)); + logprintf (LOG_NOTQUIET, _("%s: The certificate of %s has been revoked.\n"), + severity, quote (host)); success = false; }