From ee32b15b9c0ac2613052e4e5dc7fc135ad3e8d7b Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Mon, 3 Oct 2016 18:30:11 +0200 Subject: Minor improvements --- src/lib/tls/msg_client_kex.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/lib/tls/msg_client_kex.cpp') 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") -- cgit v1.2.3