diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-02-28 01:55:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-02-28 01:55:09 +0000 |
commit | bed6c0545329d58cf3186877d5e7c08c57bdf5c4 (patch) | |
tree | 44129f31c432aaa9878bf1260670e2eafc785c82 /src/common/tortls.c | |
parent | 25ff3a5042d9a610cad99b76f07d87758e8bd754 (diff) | |
download | tor-bed6c0545329d58cf3186877d5e7c08c57bdf5c4.tar.gz tor-bed6c0545329d58cf3186877d5e7c08c57bdf5c4.zip |
give a better warning when tor points at an https server.
svn:r3706
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r-- | src/common/tortls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 94c13fdfae..2ab3771f3e 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -627,6 +627,8 @@ tor_tls_get_peer_cert_nickname(tor_tls *tls, char *buf, size_t buflen) if (((int)strspn(buf, LEGAL_NICKNAME_CHARACTERS)) < lenout) { log_fn(LOG_WARN, "Peer certificate nickname '%s' has illegal characters.", buf); + if (strchr(buf, '.')) + log_fn(LOG_WARN, " (Maybe it is not really running Tor at its advertised OR port.)"); goto error; } X509_free(cert); |