diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-17 21:51:20 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-17 21:51:20 +0000 |
commit | 97a0a435114e99e14dafa9f6ee72df644254b460 (patch) | |
tree | d47de4e5a5cbfe9d5450706d66a554d7d776228b /src/or/connection_or.c | |
parent | 640544ae3e6d6e8b576327442c98750359eccbf6 (diff) | |
download | tor-97a0a435114e99e14dafa9f6ee72df644254b460.tar tor-97a0a435114e99e14dafa9f6ee72df644254b460.tar.gz |
start the process of making 0.0.7* obsolete
svn:r2565
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 7ad0230d4..02cb4fa23 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -254,20 +254,8 @@ connection_t *connection_or_connect(uint32_t addr, uint16_t port, * Return -1 if <b>conn</b> is broken, else return 0. */ int connection_tls_start_handshake(connection_t *conn, int receiving) { - int use_no_cert=0; conn->state = OR_CONN_STATE_HANDSHAKING; - if(receiving) { /* check if he's 0.0.7 and I'm unverified */ - routerinfo_t *him, *me; - him = router_get_by_digest(conn->identity_digest); - me = router_get_my_routerinfo(); - - if(him && !tor_version_as_new_as(him->platform, "0.0.8pre1") && - (!me || !me->is_verified)) { - log_fn(LOG_INFO,"He's running 0.0.7, and I'm unverified. Acting like OP."); - use_no_cert = 1; - } - } - conn->tls = tor_tls_new(conn->s, receiving, use_no_cert); + conn->tls = tor_tls_new(conn->s, receiving, 0); if(!conn->tls) { log_fn(LOG_WARN,"tor_tls_new failed. Closing."); return -1; |