From 2be0508f0de762c8a336a686f685784a0474b9cf Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 25 Feb 2005 21:05:42 +0000 Subject: Be specific about which "illegal character" we just saw in the cert. svn:r3699 --- src/common/tortls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common/tortls.c') diff --git a/src/common/tortls.c b/src/common/tortls.c index 9f7bf326d9..94c13fdfae 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -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); -- cgit v1.2.3-54-g00ecf