diff options
author | Roger Dingledine <arma@torproject.org> | 2005-01-30 08:02:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-01-30 08:02:33 +0000 |
commit | e432d2ceea56716d85731595d42b640ff2aaea92 (patch) | |
tree | 43b724695fad4e9079c8dc21a731e8014628704b /src/or/connection_or.c | |
parent | cab0138e4ca3f41eb3946d588c3055cf2a3d3566 (diff) | |
download | tor-e432d2ceea56716d85731595d42b640ff2aaea92.tar.gz tor-e432d2ceea56716d85731595d42b640ff2aaea92.zip |
we should handle the case where the client has no cert, for
backwards compatibility with jap clients.
svn:r3466
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 1 |
1 files changed, 1 insertions, 0 deletions
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))) { |