1//
2// AcceptCertificateHandler.cpp
3//
4// Library: NetSSL_OpenSSL
5// Package: SSLCore
6// Module: AcceptCertificateHandler
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/AcceptCertificateHandler.h"
16
17
18namespace Poco {
19namespace Net {
20
21
22AcceptCertificateHandler::AcceptCertificateHandler(bool server): InvalidCertificateHandler(server)
23{
24}
25
26
27AcceptCertificateHandler::~AcceptCertificateHandler()
28{
29}
30
31
32void AcceptCertificateHandler::onInvalidCertificate(const void*, VerificationErrorArgs& errorCert)
33{
34 errorCert.setIgnoreError(true);
35}
36
37
38} } // namespace Poco::Net
39