[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] give a better warning when tor points at an https server.



Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv3692/src/common

Modified Files:
	tortls.c 
Log Message:
give a better warning when tor points at an https server.

Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/tortls.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- tortls.c	25 Feb 2005 21:05:42 -0000	1.86
+++ tortls.c	28 Feb 2005 01:55:09 -0000	1.87
@@ -627,6 +627,8 @@
   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);