[or-cvs] we should handle the case where the client has no cert, for
Roger Dingledine
arma at seul.org
Sun Jan 30 08:02:35 UTC 2005
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
connection_or.c
Log Message:
we should handle the case where the client has no cert, for
backwards compatibility with jap clients.
Index: connection_or.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_or.c,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -d -r1.154 -r1.155
--- connection_or.c 13 Jan 2005 20:22:38 -0000 1.154
+++ connection_or.c 30 Jan 2005 08:02:33 -0000 1.155
@@ -346,6 +346,7 @@
log_fn(LOG_DEBUG,"tls handshake done. verifying.");
if (! tor_tls_peer_has_cert(conn->tls)) {
log_fn(LOG_WARN,"Peer didn't send a cert! Closing.");
+ /* XXX we should handle this case rather than just closing. */
return -1;
}
if (tor_tls_get_peer_cert_nickname(conn->tls, nickname, sizeof(nickname))) {
More information about the tor-commits
mailing list