diff options
author | René Korthaus <[email protected]> | 2016-10-03 18:30:11 +0200 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-10-03 18:30:11 +0200 |
commit | ee32b15b9c0ac2613052e4e5dc7fc135ad3e8d7b (patch) | |
tree | 97f0313428ed212f9220498bbb88749688ae22f2 /src/lib/tls/msg_client_kex.cpp | |
parent | f8c63ad084f75c4a61d396e9228f00424f315de9 (diff) |
Minor improvements
Diffstat (limited to 'src/lib/tls/msg_client_kex.cpp')
-rw-r--r-- | src/lib/tls/msg_client_kex.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/lib/tls/msg_client_kex.cpp b/src/lib/tls/msg_client_kex.cpp index a01830c28..0eceadb3b 100644 --- a/src/lib/tls/msg_client_kex.cpp +++ b/src/lib/tls/msg_client_kex.cpp @@ -173,14 +173,9 @@ Client_Key_Exchange::Client_Key_Exchange(Handshake_IO& io, } // follow server's preference for point compression - if(state.server_hello()->prefers_compressed_ec_points()) - { - append_tls_length_value(m_key_material, priv_key.public_value(PointGFp::COMPRESSED), 1); - } - else - { - append_tls_length_value(m_key_material, priv_key.public_value(PointGFp::UNCOMPRESSED), 1); - } + append_tls_length_value(m_key_material, + priv_key.public_value(state.server_hello()->prefers_compressed_ec_points() ? + PointGFp::COMPRESSED : PointGFp::UNCOMPRESSED ), 1); } #if defined(BOTAN_HAS_SRP6) else if(kex_algo == "SRP_SHA") |