mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-20 21:08:34 +02:00
41 lines
686 B
C++
41 lines
686 B
C++
//
|
|
// AcceptCertificateHandler.cpp
|
|
//
|
|
// $Id$
|
|
//
|
|
// Library: NetSSL_Win
|
|
// Package: SSLCore
|
|
// Module: AcceptCertificateHandler
|
|
//
|
|
// Copyright (c) 2006-2014, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/Net/AcceptCertificateHandler.h"
|
|
|
|
|
|
namespace Poco {
|
|
namespace Net {
|
|
|
|
|
|
AcceptCertificateHandler::AcceptCertificateHandler(bool server): InvalidCertificateHandler(server)
|
|
{
|
|
}
|
|
|
|
|
|
AcceptCertificateHandler::~AcceptCertificateHandler()
|
|
{
|
|
}
|
|
|
|
|
|
void AcceptCertificateHandler::onInvalidCertificate(const void*, VerificationErrorArgs& errorCert)
|
|
{
|
|
errorCert.setIgnoreError(true);
|
|
}
|
|
|
|
|
|
} } // namespace Poco::Net
|