mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Be specific about which "illegal character" we just saw in the cert.
svn:r3699
This commit is contained in:
parent
ea668225c0
commit
2be0508f0d
@ -625,7 +625,8 @@ tor_tls_get_peer_cert_nickname(tor_tls *tls, char *buf, size_t buflen)
|
||||
if (lenout == -1)
|
||||
goto error;
|
||||
if (((int)strspn(buf, LEGAL_NICKNAME_CHARACTERS)) < lenout) {
|
||||
log_fn(LOG_WARN, "Peer certificate nickname has illegal characters.");
|
||||
log_fn(LOG_WARN, "Peer certificate nickname '%s' has illegal characters.",
|
||||
buf);
|
||||
goto error;
|
||||
}
|
||||
X509_free(cert);
|
||||
|
Loading…
Reference in New Issue
Block a user