logs pad size when using encryption

This commit is contained in:
Arvid Norberg 2007-06-18 17:12:42 +00:00
parent eb03851276
commit 756db24b75
1 changed files with 5 additions and 0 deletions

View File

@ -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(),