diff options
author | Jack Lloyd <[email protected]> | 2020-11-28 06:29:08 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-11-28 06:29:08 -0500 |
commit | 1c9c46a80e7113207fbd83f84b096bcf4ba4271a (patch) | |
tree | 4e179cc1926fe4908eae43ec47abc81ecb3230de /src/lib/tls/msg_client_kex.cpp | |
parent | 479863d3976b8e10f406d03127a81539bd63659f (diff) | |
parent | 4680c024ca91afe2ef0e278f3e8abb6cd45c37c3 (diff) |
Merge GH #2517 Allow custom RSA private keys during TLS
Diffstat (limited to 'src/lib/tls/msg_client_kex.cpp')
-rw-r--r-- | src/lib/tls/msg_client_kex.cpp | 2 |
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 e7aa34409..469463bf1 100644 --- a/src/lib/tls/msg_client_kex.cpp +++ b/src/lib/tls/msg_client_kex.cpp @@ -215,7 +215,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); |