aboutsummaryrefslogtreecommitdiffstats
path: root/src/bogo_shim
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-11-21 15:54:03 -0500
committerJack Lloyd <[email protected]>2020-11-23 07:16:43 -0500
commit8c20294f75a60046daebf4b6811cf7f7cecda4e4 (patch)
tree453d51a5550844bcc5a1955465e493d7194029f7 /src/bogo_shim
parentd6956012d1f2993b27a0be58b098327902a0a7f4 (diff)
Remove SRP support from TLS
Diffstat (limited to 'src/bogo_shim')
-rw-r--r--src/bogo_shim/bogo_shim.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/bogo_shim/bogo_shim.cpp b/src/bogo_shim/bogo_shim.cpp
index c62bc8e67..4a043c91d 100644
--- a/src/bogo_shim/bogo_shim.cpp
+++ b/src/bogo_shim/bogo_shim.cpp
@@ -1009,8 +1009,7 @@ class Shim_Policy final : public Botan::TLS::Policy
return true;
}
- std::vector<uint16_t> ciphersuite_list(Botan::TLS::Protocol_Version version,
- bool have_srp) const override;
+ std::vector<uint16_t> ciphersuite_list(Botan::TLS::Protocol_Version version) const override;
size_t dtls_default_mtu() const override
{
@@ -1044,8 +1043,7 @@ class Shim_Policy final : public Botan::TLS::Policy
size_t m_sessions;
};
-std::vector<uint16_t> Shim_Policy::ciphersuite_list(Botan::TLS::Protocol_Version version,
- bool have_srp) const
+std::vector<uint16_t> Shim_Policy::ciphersuite_list(Botan::TLS::Protocol_Version version) const
{
std::vector<uint16_t> ciphersuite_codes;
@@ -1080,10 +1078,6 @@ std::vector<uint16_t> Shim_Policy::ciphersuite_list(Botan::TLS::Protocol_Version
if(suite.valid() == false)
continue;
- // Are we doing SRP?
- if(!have_srp && suite.kex_method() == Botan::TLS::Kex_Algo::SRP_SHA)
- continue;
-
if(cipher_limit != "")
{
if(cipher_limit == "DEFAULT:!AES")