Commit 709fa0e5 authored by louiz’'s avatar louiz’

Remove a useless getter

parent 85288fd0
...@@ -332,7 +332,7 @@ void TCPSocketHandler::tls_verify_cert_chain(const std::vector<Botan::X509_Certi ...@@ -332,7 +332,7 @@ void TCPSocketHandler::tls_verify_cert_chain(const std::vector<Botan::X509_Certi
Botan::Usage_Type usage, const std::string& hostname, Botan::Usage_Type usage, const std::string& hostname,
const Botan::TLS::Policy& policy) 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 "); log_debug("Not verifying certificate due to domain policy ");
return; return;
......
...@@ -49,9 +49,4 @@ bool BiboumiTLSPolicy::require_cert_revocation_info() const ...@@ -49,9 +49,4 @@ bool BiboumiTLSPolicy::require_cert_revocation_info() const
return this->req_cert_revocation_info; return this->req_cert_revocation_info;
} }
bool BiboumiTLSPolicy::verify_certificate_info() const
{
return this->verify_certificate;
}
#endif #endif
...@@ -21,10 +21,9 @@ public: ...@@ -21,10 +21,9 @@ public:
BiboumiTLSPolicy &operator=(BiboumiTLSPolicy &&) = delete; BiboumiTLSPolicy &operator=(BiboumiTLSPolicy &&) = delete;
bool require_cert_revocation_info() const override; bool require_cert_revocation_info() const override;
bool verify_certificate_info() const; bool verify_certificate{true};
protected: protected:
bool req_cert_revocation_info{true}; bool req_cert_revocation_info{true};
bool verify_certificate{true};
}; };
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment