mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Use Gnulib's quote function in openssl.c.
This commit is contained in:
parent
4a465612b3
commit
29b8cb5661
@ -10,6 +10,7 @@
|
|||||||
* init.c: Likewise.
|
* init.c: Likewise.
|
||||||
* log.c: Likewise.
|
* log.c: Likewise.
|
||||||
* mswindows.c: Likewise.
|
* mswindows.c: Likewise.
|
||||||
|
* openssl.c: Likewise.
|
||||||
|
|
||||||
2008-04-16 Steven Schubiger <schubiger@gmail.com>
|
2008-04-16 Steven Schubiger <schubiger@gmail.com>
|
||||||
|
|
||||||
|
@ -515,8 +515,8 @@ ssl_check_certificate (int fd, const char *host)
|
|||||||
{
|
{
|
||||||
char *issuer = X509_NAME_oneline (X509_get_issuer_name (cert), 0, 0);
|
char *issuer = X509_NAME_oneline (X509_get_issuer_name (cert), 0, 0);
|
||||||
logprintf (LOG_NOTQUIET,
|
logprintf (LOG_NOTQUIET,
|
||||||
_("%s: cannot verify %s's certificate, issued by `%s':\n"),
|
_("%s: cannot verify %s's certificate, issued by %s:\n"),
|
||||||
severity, escnonprint (host), escnonprint (issuer));
|
severity, escnonprint (host), quote (escnonprint (issuer)));
|
||||||
/* Try to print more user-friendly (and translated) messages for
|
/* Try to print more user-friendly (and translated) messages for
|
||||||
the frequent verification errors. */
|
the frequent verification errors. */
|
||||||
switch (vresult)
|
switch (vresult)
|
||||||
@ -566,8 +566,8 @@ ssl_check_certificate (int fd, const char *host)
|
|||||||
if (!pattern_match (common_name, host))
|
if (!pattern_match (common_name, host))
|
||||||
{
|
{
|
||||||
logprintf (LOG_NOTQUIET, _("\
|
logprintf (LOG_NOTQUIET, _("\
|
||||||
%s: certificate common name `%s' doesn't match requested host name `%s'.\n"),
|
%s: certificate common name %s doesn't match requested host name %s.\n"),
|
||||||
severity, escnonprint (common_name), escnonprint (host));
|
severity, quote (escnonprint (common_name)), quote (escnonprint (host)));
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user