diff options
author | louiz’ <louiz@louiz.org> | 2016-12-04 22:17:37 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-03-21 11:36:10 +0100 |
commit | cb79fc1b3d492af60404b5be1c0cb1c8c8065801 (patch) | |
tree | e981910899572b8393d37a8e4a0467fc23634473 /louloulibs/network/tcp_socket_handler.hpp | |
parent | 395297e488cee2d19eb75f5a42102f1f5daa3a40 (diff) | |
download | biboumi-cb79fc1b3d492af60404b5be1c0cb1c8c8065801.tar.gz biboumi-cb79fc1b3d492af60404b5be1c0cb1c8c8065801.tar.bz2 biboumi-cb79fc1b3d492af60404b5be1c0cb1c8c8065801.tar.xz biboumi-cb79fc1b3d492af60404b5be1c0cb1c8c8065801.zip |
Update the verify_certificate_chain code to work with botan >= 1.11.34 as well
ref #3245
Diffstat (limited to 'louloulibs/network/tcp_socket_handler.hpp')
-rw-r--r-- | louloulibs/network/tcp_socket_handler.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/louloulibs/network/tcp_socket_handler.hpp b/louloulibs/network/tcp_socket_handler.hpp index 40532f0..8baa1d1 100644 --- a/louloulibs/network/tcp_socket_handler.hpp +++ b/louloulibs/network/tcp_socket_handler.hpp @@ -196,6 +196,15 @@ private: * anything here appart from logging the TLS session information. */ bool tls_session_established(const Botan::TLS::Session& session) BOTAN_TLS_CALLBACKS_OVERRIDE; + +#if BOTAN_VERSION_CODE >= BOTAN_VERSION_CODE_FOR(1,11,34) + void tls_verify_cert_chain(const std::vector<Botan::X509_Certificate>& cert_chain, + const std::vector<std::shared_ptr<const Botan::OCSP::Response>>& ocsp_responses, + const std::vector<Botan::Certificate_Store*>& trusted_roots, + Botan::Usage_Type usage, + const std::string& hostname, + const Botan::TLS::Policy& policy) BOTAN_TLS_CALLBACKS_OVERRIDE; +#endif /** * Called whenever the tls session goes from inactive to active. This * means that the handshake has just been successfully done, and we can |