aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls
diff options
context:
space:
mode:
authorClaudius Hauptmann <[email protected]>2020-11-27 22:28:06 +0100
committerClaudius Hauptmann <[email protected]>2020-11-27 22:28:06 +0100
commit4680c024ca91afe2ef0e278f3e8abb6cd45c37c3 (patch)
treebd1fa0e0a6363f503e7ca5682d05e995b454bd51 /src/lib/tls
parenta4c62b3a79dd5066c1a6bea36fcc1ff8fe737e57 (diff)
Allow custom RSA Private_Key in Client_Key_Exchange message
Diffstat (limited to 'src/lib/tls')
-rw-r--r--src/lib/tls/msg_client_kex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tls/msg_client_kex.cpp b/src/lib/tls/msg_client_kex.cpp
index beeede31f..4166b3600 100644
--- a/src/lib/tls/msg_client_kex.cpp
+++ b/src/lib/tls/msg_client_kex.cpp
@@ -217,7 +217,7 @@ Client_Key_Exchange::Client_Key_Exchange(const std::vector<uint8_t>& contents,
if(!server_rsa_kex_key)
throw Internal_Error("Expected RSA kex but no server kex key set");
- if(!dynamic_cast<const RSA_PrivateKey*>(server_rsa_kex_key))
+ if(server_rsa_kex_key->algo_name() != "RSA")
throw Internal_Error("Expected RSA key but got " + server_rsa_kex_key->algo_name());
TLS_Data_Reader reader("ClientKeyExchange", contents);