From: Roger Dingledine Date: Sun, 30 Jan 2005 08:02:33 +0000 (+0000) Subject: we should handle the case where the client has no cert, for X-Git-Tag: tor-0.1.0.1-rc~374 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e432d2ceea56716d85731595d42b640ff2aaea92;p=thirdparty%2Ftor.git we should handle the case where the client has no cert, for backwards compatibility with jap clients. svn:r3466 --- diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 35b19c5d77..3fdf5fc90b 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -346,6 +346,7 @@ connection_tls_finish_handshake(connection_t *conn) { 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))) {