mirror of
https://github.com/mirror/wget.git
synced 2025-01-07 19:00:30 +08:00
[svn] Minor doc. clarification.
This commit is contained in:
parent
a6d2635029
commit
917ec9f02d
@ -427,7 +427,7 @@ ssl_check_certificate (int fd, const char *host)
|
|||||||
logprintf (LOG_NOTQUIET, _("%s: No certificate presented by %s.\n"),
|
logprintf (LOG_NOTQUIET, _("%s: No certificate presented by %s.\n"),
|
||||||
severity, escnonprint (host));
|
severity, escnonprint (host));
|
||||||
success = 0;
|
success = 0;
|
||||||
goto out; /* must bail out since CERT is NULL */
|
goto no_cert; /* must bail out since CERT is NULL */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_DEBUG
|
#ifdef ENABLE_DEBUG
|
||||||
@ -474,8 +474,8 @@ ssl_check_certificate (int fd, const char *host)
|
|||||||
common names and choose the most specific one, i.e. the last
|
common names and choose the most specific one, i.e. the last
|
||||||
one, not the first one, which the current code picks.
|
one, not the first one, which the current code picks.
|
||||||
|
|
||||||
- Make sure that the names are encoded as UTF-8 which, being
|
- Ensure that ASN1 strings from the certificate are encoded as
|
||||||
ASCII-compatible, can be easily compared against HOST. */
|
UTF-8 which can be meaningfully compared to HOST. */
|
||||||
|
|
||||||
common_name[0] = '\0';
|
common_name[0] = '\0';
|
||||||
X509_NAME_get_text_by_NID (X509_get_subject_name (cert),
|
X509_NAME_get_text_by_NID (X509_get_subject_name (cert),
|
||||||
@ -493,7 +493,7 @@ ssl_check_certificate (int fd, const char *host)
|
|||||||
escnonprint (host)));
|
escnonprint (host)));
|
||||||
X509_free (cert);
|
X509_free (cert);
|
||||||
|
|
||||||
out:
|
no_cert:
|
||||||
if (opt.check_cert && !success)
|
if (opt.check_cert && !success)
|
||||||
logprintf (LOG_NOTQUIET, _("\
|
logprintf (LOG_NOTQUIET, _("\
|
||||||
To connect to %s insecurely, use `--no-check-certificate'.\n"),
|
To connect to %s insecurely, use `--no-check-certificate'.\n"),
|
||||||
|
Loading…
Reference in New Issue
Block a user