aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/tls_server.cpp')
-rw-r--r--src/tls/tls_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/tls_server.cpp b/src/tls/tls_server.cpp
index 1253a7327..74d4106a2 100644
--- a/src/tls/tls_server.cpp
+++ b/src/tls/tls_server.cpp
@@ -269,7 +269,7 @@ void Server::process_handshake_msg(Handshake_Type type,
std::auto_ptr<Private_Key> private_key(0);
- if(kex_algo == "" || sig_algo != "")
+ if(kex_algo == "RSA" || sig_algo != "")
{
private_key.reset(
creds.private_key_for(state->server_certs->cert_chain()[0],
@@ -277,7 +277,7 @@ void Server::process_handshake_msg(Handshake_Type type,
m_hostname));
}
- if(kex_algo == "")
+ if(kex_algo == "RSA")
{
state->server_rsa_kex_key = private_key.release();
}