From 756db24b75121dbbbec6f69e6855431fad132a7e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 18 Jun 2007 17:12:42 +0000 Subject: [PATCH] logs pad size when using encryption --- src/bt_peer_connection.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bt_peer_connection.cpp b/src/bt_peer_connection.cpp index 55eec74c2..9029fb265 100755 --- a/src/bt_peer_connection.cpp +++ b/src/bt_peer_connection.cpp @@ -291,6 +291,11 @@ namespace libtorrent m_DH_key_exchange.reset(new DH_key_exchange); int pad_size = std::rand() % 512; + +#ifdef TORRENT_VERBOSE_LOGGING + (*m_logger) << " pad size: " << pad_size << "\n"; +#endif + buffer::interval send_buf = allocate_send_buffer(dh_key_len + pad_size); std::copy (m_DH_key_exchange->get_local_key(),