1//
2// RejectCertificateHandler.cpp
3//
4// Library: NetSSL_OpenSSL
5// Package: SSLCore
6// Module: RejectCertificateHandler
7//
8// Copyright (c) 2006-2009, Applied Informatics Software Engineering GmbH.
9// and Contributors.
10//
11// SPDX-License-Identifier: BSL-1.0
12//
13
14
15#include "Poco/Net/RejectCertificateHandler.h"
16
17
18namespace Poco {
19namespace Net {
20
21
22RejectCertificateHandler::RejectCertificateHandler(bool server): InvalidCertificateHandler(server)
23{
24}
25
26
27RejectCertificateHandler::~RejectCertificateHandler()
28{
29}
30
31
32void RejectCertificateHandler::onInvalidCertificate(const void*, VerificationErrorArgs& errorCert)
33{
34 errorCert.setIgnoreError(false);
35}
36
37
38} } // namespace Poco::Net
39