]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
we should handle the case where the client has no cert, for
authorRoger Dingledine <arma@torproject.org>
Sun, 30 Jan 2005 08:02:33 +0000 (08:02 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 30 Jan 2005 08:02:33 +0000 (08:02 +0000)
backwards compatibility with jap clients.

svn:r3466

src/or/connection_or.c

index 35b19c5d777ec7fa56bac1349859e6daa8ab4ded..3fdf5fc90b95bc856d3f8599206fd4ecab9eab7c 100644 (file)
@@ -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))) {