aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/msg_server_kex.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-08-06 12:05:41 +0000
committerlloyd <[email protected]>2012-08-06 12:05:41 +0000
commit0d30fb9811786b8cf85d091baf1d7490deb17398 (patch)
treec99fb81900c4d8499254aaa523ebe4847f5d3c36 /src/tls/msg_server_kex.cpp
parentab195a19bc5a938af1d70f28186c164a48e5c009 (diff)
Make the handshake Ciphersuite only available by const reference.
Derive it when the server hello is set.
Diffstat (limited to 'src/tls/msg_server_kex.cpp')
-rw-r--r--src/tls/msg_server_kex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/msg_server_kex.cpp b/src/tls/msg_server_kex.cpp
index f88972836..f3721a2b5 100644
--- a/src/tls/msg_server_kex.cpp
+++ b/src/tls/msg_server_kex.cpp
@@ -35,7 +35,7 @@ Server_Key_Exchange::Server_Key_Exchange(Handshake_IO& io,
const Private_Key* signing_key)
{
const std::string hostname = state->client_hello()->sni_hostname();
- const std::string kex_algo = state->suite.kex_algo();
+ const std::string kex_algo = state->ciphersuite().kex_algo();
if(kex_algo == "PSK" || kex_algo == "DHE_PSK" || kex_algo == "ECDHE_PSK")
{
@@ -120,7 +120,7 @@ Server_Key_Exchange::Server_Key_Exchange(Handshake_IO& io,
else if(kex_algo != "PSK")
throw Internal_Error("Server_Key_Exchange: Unknown kex type " + kex_algo);
- if(state->suite.sig_algo() != "")
+ if(state->ciphersuite().sig_algo() != "")
{
BOTAN_ASSERT(signing_key, "Signing key was set");