aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-02-25 21:05:42 +0000
committerNick Mathewson <nickm@torproject.org>2005-02-25 21:05:42 +0000
commit2be0508f0de762c8a336a686f685784a0474b9cf (patch)
treea2b31a5cbb6f730750044f3b7a52fd36a2fc03f1 /src/common/tortls.c
parentea668225c020a9f33bfe8f741d52f5e550acb399 (diff)
downloadtor-2be0508f0de762c8a336a686f685784a0474b9cf.tar
tor-2be0508f0de762c8a336a686f685784a0474b9cf.tar.gz
Be specific about which "illegal character" we just saw in the cert.
svn:r3699
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 9f7bf326d..94c13fdfa 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);