diff options
author | lloyd <[email protected]> | 2012-06-14 19:32:01 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-06-14 19:32:01 +0000 |
commit | b3d3feb177ffdc6bb25ec7d46293635877fe80d0 (patch) | |
tree | 5cc29ea5810c30095afa59e090f02874fc1c00e7 /src/tls/c_kex.cpp | |
parent | 8227a598cbbd35f3eced99ae2e437df0826769f9 (diff) |
Profiling with valgrind shows that the 2**16 iteration for finding
ciphersuites was actually a substantial hit on handshakes. Add a new
function TLS::Ciphersuite::all_known_ciphersuites which will do this
once and cache it for future use.
Diffstat (limited to 'src/tls/c_kex.cpp')
-rw-r--r-- | src/tls/c_kex.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tls/c_kex.cpp b/src/tls/c_kex.cpp index 2981cbaed..a173b18ad 100644 --- a/src/tls/c_kex.cpp +++ b/src/tls/c_kex.cpp @@ -323,7 +323,6 @@ Client_Key_Exchange::Client_Key_Exchange(const std::vector<byte>& contents, throw TLS_Exception(Alert::UNKNOWN_PSK_IDENTITY, "No PSK for identifier " + psk_identity); } - } if(kex_algo == "PSK") |