diff options
author | René Meusel <[email protected]> | 2021-10-28 10:56:03 +0530 |
---|---|---|
committer | René Meusel <[email protected]> | 2021-10-28 12:10:44 +0530 |
commit | fc980c60d6aa0cf8c853b8c449c241d6deec9274 (patch) | |
tree | c4952c0e7543d1b451f7961ff683c53715717c0b /src/bogo_shim | |
parent | 60103d4cef08c921a6ffbdf32081df8aad759695 (diff) |
Ciphersuite::by_id() ::from_name() return a std::optional
Diffstat (limited to 'src/bogo_shim')
-rw-r--r-- | src/bogo_shim/bogo_shim.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bogo_shim/bogo_shim.cpp b/src/bogo_shim/bogo_shim.cpp index b0f658451..31c4d62e7 100644 --- a/src/bogo_shim/bogo_shim.cpp +++ b/src/bogo_shim/bogo_shim.cpp @@ -1054,9 +1054,9 @@ std::vector<uint16_t> Shim_Policy::ciphersuite_list(Botan::TLS::Protocol_Version for(auto suite_name : suites) { const auto suite = Botan::TLS::Ciphersuite::from_name(suite_name); - if(suite.valid() == false) + if(!suite || !suite->valid()) shim_exit_with_error("Bad ciphersuite name " + suite_name); - ciphersuite_codes.push_back(suite.ciphersuite_code()); + ciphersuite_codes.push_back(suite->ciphersuite_code()); } } else |