1//
2// RejectCertificateHandler.h
3//
4// Library: NetSSL_OpenSSL
5// Package: SSLCore
6// Module: RejectCertificateHandler
7//
8// Definition of the RejectCertificateHandler class.
9//
10// Copyright (c) 2006-2010, Applied Informatics Software Engineering GmbH.
11// and Contributors.
12//
13// SPDX-License-Identifier: BSL-1.0
14//
15
16
17#ifndef NetSSL_RejectCertificateHandler_INCLUDED
18#define NetSSL_RejectCertificateHandler_INCLUDED
19
20
21#include "Poco/Net/NetSSL.h"
22#include "Poco/Net/InvalidCertificateHandler.h"
23
24
25namespace Poco {
26namespace Net {
27
28
29class NetSSL_API RejectCertificateHandler: public InvalidCertificateHandler
30 /// A RejectCertificateHandler is invoked whenever an error
31 /// occurs verifying the certificate. It always rejects
32 /// the certificate.
33{
34public:
35 RejectCertificateHandler(bool handleErrorsOnServerSide);
36 /// Creates the RejectCertificateHandler
37
38 virtual ~RejectCertificateHandler();
39 /// Destroys the RejectCertificateHandler.
40
41 void onInvalidCertificate(const void* pSender, VerificationErrorArgs& errorCert);
42};
43
44
45} } // namespace Poco::Net
46
47
48#endif // NetSSL_RejectCertificateHandler_INCLUDED
49