diff options
author | lloyd <[email protected]> | 2012-01-27 16:34:17 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-27 16:34:17 +0000 |
commit | 133bda471c547842044bd66a44bfe64668e966da (patch) | |
tree | 0420a87f6ac61740bd0b44888df9e97d8e3b5495 /src/tls/tls_server.cpp | |
parent | b96fde715dddbb3fe1eb6a9077bb92182dfa1635 (diff) |
Server side PSK kex
Diffstat (limited to 'src/tls/tls_server.cpp')
-rw-r--r-- | src/tls/tls_server.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tls/tls_server.cpp b/src/tls/tls_server.cpp index 9002c3e05..9c4410938 100644 --- a/src/tls/tls_server.cpp +++ b/src/tls/tls_server.cpp @@ -308,7 +308,7 @@ void Server::process_handshake_msg(Handshake_Type type, { state->server_rsa_kex_key = private_key; } - else + else if(kex_algo != "PSK") // FIXME: means we never send identity hint { state->server_kex = new Server_Key_Exchange(writer, state, policy, rng, private_key); @@ -358,8 +358,7 @@ void Server::process_handshake_msg(Handshake_Type type, else state->set_expected_next(HANDSHAKE_CCS); - state->client_kex = new Client_Key_Exchange(contents, state->suite, - state->version); + state->client_kex = new Client_Key_Exchange(contents, state, creds); SecureVector<byte> pre_master = state->client_kex->pre_master_secret(rng, state); |