diff options
author | lloyd <[email protected]> | 2012-01-27 20:28:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-27 20:28:34 +0000 |
commit | 1bb039c61c9b372e5780a1bceaf673b0be459f17 (patch) | |
tree | f9e938c6d816cb0aaf5417be07a53fd353eaef8d | |
parent | 6a8175eb54d37732c81ab292957c3f3fa2a7cc78 (diff) |
Remove debug output
-rw-r--r-- | src/tls/c_kex.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/tls/c_kex.cpp b/src/tls/c_kex.cpp index 665048b97..434dd6ed7 100644 --- a/src/tls/c_kex.cpp +++ b/src/tls/c_kex.cpp @@ -18,9 +18,6 @@ #include <botan/loadstor.h> #include <memory> -#include <iostream> -#include <botan/hex.h> - namespace Botan { namespace TLS { @@ -321,16 +318,11 @@ Client_Key_Exchange::Client_Key_Exchange(const MemoryRegion<byte>& contents, MemoryVector<byte> client_pubkey; - std::cout << hex_encode(contents) << "\n"; - if(ka_key->algo_name() == "DH") client_pubkey = reader.get_range<byte>(2, 0, 65535); else client_pubkey = reader.get_range<byte>(1, 0, 255); - std::cout << hex_encode(client_pubkey) << "\n"; - std::cout << reader.remaining_bytes() << "\n"; - SecureVector<byte> shared_secret = ka.derive_key(0, client_pubkey).bits_of(); if(ka_key->algo_name() == "DH") @@ -352,14 +344,11 @@ Client_Key_Exchange::Client_Key_Exchange(const MemoryRegion<byte>& contents, * on, allowing the protocol to fail later in the finished * checks. */ - std::cout << "Shared secret failed << " << e.what() << "\n"; pre_master = rng.random_vec(ka_key->public_value().size()); } } else throw Internal_Error("Client_Key_Exchange: Unknown kex type " + kex_algo); - - std::cout << hex_encode(pre_master) << "\n"; } } |