summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/tcp_socket_handler.cpp2
-rw-r--r--src/network/tls_policy.cpp5
-rw-r--r--src/network/tls_policy.hpp3
3 files changed, 2 insertions, 8 deletions
diff --git a/src/network/tcp_socket_handler.cpp b/src/network/tcp_socket_handler.cpp
index c6e173d..29c5d6a 100644
--- a/src/network/tcp_socket_handler.cpp
+++ b/src/network/tcp_socket_handler.cpp
@@ -332,7 +332,7 @@ void TCPSocketHandler::tls_verify_cert_chain(const std::vector<Botan::X509_Certi
Botan::Usage_Type usage, const std::string& hostname,
const Botan::TLS::Policy& policy)
{
- if (!this->policy.verify_certificate_info())
+ if (!this->policy.verify_certificate)
{
log_debug("Not verifying certificate due to domain policy ");
return;
diff --git a/src/network/tls_policy.cpp b/src/network/tls_policy.cpp
index 8aa8b72..f32557e 100644
--- a/src/network/tls_policy.cpp
+++ b/src/network/tls_policy.cpp
@@ -49,9 +49,4 @@ bool BiboumiTLSPolicy::require_cert_revocation_info() const
return this->req_cert_revocation_info;
}
-bool BiboumiTLSPolicy::verify_certificate_info() const
-{
- return this->verify_certificate;
-}
-
#endif
diff --git a/src/network/tls_policy.hpp b/src/network/tls_policy.hpp
index a0790a3..e915646 100644
--- a/src/network/tls_policy.hpp
+++ b/src/network/tls_policy.hpp
@@ -21,10 +21,9 @@ public:
BiboumiTLSPolicy &operator=(BiboumiTLSPolicy &&) = delete;
bool require_cert_revocation_info() const override;
- bool verify_certificate_info() const;
+ bool verify_certificate{true};
protected:
bool req_cert_revocation_info{true};
- bool verify_certificate{true};
};
#endif