summaryrefslogtreecommitdiff
path: root/src/network/credentials_manager.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-07-20 21:22:58 +0200
committerlouiz’ <louiz@louiz.org>2017-07-20 21:22:58 +0200
commitffb402f0adb9f808c7b8bc9616e71f7b3f8931ac (patch)
tree074862e68c2c0d055d87a1be99947171c839bae6 /src/network/credentials_manager.cpp
parentf0f3d3d4e2fb7c02a5b2ad517632ec5071fefb45 (diff)
downloadbiboumi-ffb402f0adb9f808c7b8bc9616e71f7b3f8931ac.tar.gz
biboumi-ffb402f0adb9f808c7b8bc9616e71f7b3f8931ac.tar.bz2
biboumi-ffb402f0adb9f808c7b8bc9616e71f7b3f8931ac.tar.xz
biboumi-ffb402f0adb9f808c7b8bc9616e71f7b3f8931ac.zip
Drop support for botan < 2.0
fix #3274
Diffstat (limited to 'src/network/credentials_manager.cpp')
-rw-r--r--src/network/credentials_manager.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/network/credentials_manager.cpp b/src/network/credentials_manager.cpp
index f93a366..7f07cef 100644
--- a/src/network/credentials_manager.cpp
+++ b/src/network/credentials_manager.cpp
@@ -54,29 +54,6 @@ void check_tls_certificate(const std::vector<Botan::X509_Certificate>& certs,
std::rethrow_exception(exc);
}
-#if BOTAN_VERSION_CODE < BOTAN_VERSION_CODE_FOR(1,11,34)
-void BasicCredentialsManager::verify_certificate_chain(const std::string& type,
- const std::string& purported_hostname,
- const std::vector<Botan::X509_Certificate>& certs)
-{
- log_debug("Checking remote certificate (", type, ") for hostname ", purported_hostname);
- try
- {
- Botan::Credentials_Manager::verify_certificate_chain(type, purported_hostname, certs);
- log_debug("Certificate is valid");
- }
- catch (const std::exception& tls_exception)
- {
- log_warning("TLS certificate check failed: ", tls_exception.what());
- std::exception_ptr exception_ptr{};
- if (this->socket_handler->abort_on_invalid_cert())
- exception_ptr = std::current_exception();
-
- check_tls_certificate(certs, purported_hostname, this->trusted_fingerprint, exception_ptr);
- }
-}
-#endif
-
bool BasicCredentialsManager::try_to_open_one_ca_bundle(const std::vector<std::string>& paths)
{
for (const auto& path: paths)