From 709fa0e5e984789113d8e4d795e52839d0cf5f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sun, 22 Jul 2018 14:40:59 +0200 Subject: Remove a useless getter --- src/network/tcp_socket_handler.cpp | 2 +- src/network/tls_policy.cpp | 5 ----- src/network/tls_policy.hpp | 3 +-- 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::vectorpolicy.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 -- cgit v1.2.3