AcceptCertificateHandler.cpp 723 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. #include "Poco/Net/AcceptCertificateHandler.h"
  14. #include "Poco/Net/VerificationErrorArgs.h"
  15. namespace Poco {
  16. namespace Net {
  17. AcceptCertificateHandler::AcceptCertificateHandler(bool server): InvalidCertificateHandler(server)
  18. {
  19. }
  20. AcceptCertificateHandler::~AcceptCertificateHandler()
  21. {
  22. }
  23. void AcceptCertificateHandler::onInvalidCertificate(const void*, VerificationErrorArgs& errorCert)
  24. {
  25. errorCert.setIgnoreError(true);
  26. }
  27. } } // namespace Poco::Net