From: Steven Schubiger Date: Wed, 16 Apr 2008 10:23:31 +0000 (+0200) Subject: Use Gnulib's quote function in openssl.c. X-Git-Tag: v1.13~421^2~12^2~28^2~27 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=29b8cb566171fc9f062838543bc270ace267fa18 Use Gnulib's quote function in openssl.c. --- diff --git a/src/ChangeLog b/src/ChangeLog index 7292f470..f2ab88eb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -10,6 +10,7 @@ * init.c: Likewise. * log.c: Likewise. * mswindows.c: Likewise. + * openssl.c: Likewise. 2008-04-16 Steven Schubiger diff --git a/src/openssl.c b/src/openssl.c index c33b4ad6..03fb1810 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -515,8 +515,8 @@ ssl_check_certificate (int fd, const char *host) { char *issuer = X509_NAME_oneline (X509_get_issuer_name (cert), 0, 0); logprintf (LOG_NOTQUIET, - _("%s: cannot verify %s's certificate, issued by `%s':\n"), - severity, escnonprint (host), escnonprint (issuer)); + _("%s: cannot verify %s's certificate, issued by %s:\n"), + severity, escnonprint (host), quote (escnonprint (issuer))); /* Try to print more user-friendly (and translated) messages for the frequent verification errors. */ switch (vresult) @@ -566,8 +566,8 @@ ssl_check_certificate (int fd, const char *host) if (!pattern_match (common_name, host)) { logprintf (LOG_NOTQUIET, _("\ -%s: certificate common name `%s' doesn't match requested host name `%s'.\n"), - severity, escnonprint (common_name), escnonprint (host)); +%s: certificate common name %s doesn't match requested host name %s.\n"), + severity, quote (escnonprint (common_name)), quote (escnonprint (host))); success = false; }