[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] we should handle the case where the client has no cert, for
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] we should handle the case where the client has no cert, for
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Sun, 30 Jan 2005 03:02:35 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 30 Jan 2005 03:02:55 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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))) {