Be specific about which "illegal character" we just saw in the cert.

svn:r3699
This commit is contained in:
Nick Mathewson 2005-02-25 21:05:42 +00:00
parent ea668225c0
commit 2be0508f0d

View File

@ -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);