diff options
author | George Kadianakis <desnacked@gmail.com> | 2011-10-26 13:16:14 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@gmail.com> | 2011-10-26 13:16:14 +0200 |
commit | 340809dd224b244675496e301d3ba154a6fe68d0 (patch) | |
tree | 52abc40c9da4c49508c731adb829793744abe4d4 /src/or/connection_or.c | |
parent | ecd239e3b577705e0669d47293a2e755cf93cec0 (diff) | |
download | tor-340809dd224b244675496e301d3ba154a6fe68d0.tar.gz tor-340809dd224b244675496e301d3ba154a6fe68d0.zip |
Get rid of tor_tls_block_renegotiation().
Since we check for naughty renegotiations using
tor_tls_t.server_handshake_count we don't need that semi-broken
function (at least till there is a way to disable rfc5746
renegotiations too).
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index bcae075c56..6c56a61e54 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -1139,10 +1139,6 @@ connection_or_tls_renegotiated_cb(tor_tls_t *tls, void *_conn) or_connection_t *conn = _conn; (void)tls; - /* Don't invoke this again. */ - tor_tls_set_renegotiate_callback(tls, NULL, NULL); - tor_tls_block_renegotiation(tls); - if (connection_tls_finish_handshake(conn) < 0) { /* XXXX_TLS double-check that it's ok to do this from inside read. */ /* XXXX_TLS double-check that this verifies certificates. */ @@ -1529,7 +1525,6 @@ connection_tls_finish_handshake(or_connection_t *conn) connection_or_init_conn_from_address(conn, &conn->_base.addr, conn->_base.port, digest_rcvd, 0); } - tor_tls_block_renegotiation(conn->tls); return connection_or_set_state_open(conn); } else { conn->_base.state = OR_CONN_STATE_OR_HANDSHAKING_V2; |