summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-07-22 14:40:59 +0200
committerlouiz’ <louiz@louiz.org>2018-07-22 14:41:32 +0200
commit709fa0e5e984789113d8e4d795e52839d0cf5f87 (patch)
treeac9ac4210f9d0f42860111e255daed67da3e1d7d
parent85288fd0b31027e7948180e0e057242e13f15da4 (diff)
downloadbiboumi-709fa0e5e984789113d8e4d795e52839d0cf5f87.tar.gz
biboumi-709fa0e5e984789113d8e4d795e52839d0cf5f87.tar.bz2
biboumi-709fa0e5e984789113d8e4d795e52839d0cf5f87.tar.xz
biboumi-709fa0e5e984789113d8e4d795e52839d0cf5f87.zip
Remove a useless getter
-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