Public Member Functions

Swift::BlindCertificateTrustChecker Class Reference

A certificate trust checker that trusts any ceritficate. More...

Inheritance diagram for Swift::BlindCertificateTrustChecker:
Collaboration diagram for Swift::BlindCertificateTrustChecker:

List of all members.

Public Member Functions

virtual bool isCertificateTrusted (const std::vector< Certificate::ref > &)
 This method is called to find out whether a certificate (chain) is trusted.

Detailed Description

A certificate trust checker that trusts any ceritficate.

This can be used to ignore any TLS certificate errors occurring during connection.

See also:
Client::setAlwaysTrustCertificates()

Definition at line 19 of file BlindCertificateTrustChecker.h.


Member Function Documentation

virtual bool Swift::BlindCertificateTrustChecker::isCertificateTrusted ( const std::vector< Certificate::ref > &  certificateChain  )  [inline, virtual]

This method is called to find out whether a certificate (chain) is trusted.

This usually happens when a certificate's validation fails, to check whether to proceed with the connection or not.

certificateChain contains the chain of certificates. The first certificate is the subject certificate.

Implements Swift::CertificateTrustChecker.

Definition at line 12 of file BlindCertificateTrustChecker.h.