|
VMime
|


Public Member Functions | |
| defaultCertificateVerifier () | |
| ~defaultCertificateVerifier () | |
| void | setX509TrustedCerts (const std::vector< shared_ptr< X509Certificate > > &trustedCerts) |
| void | setX509RootCAs (const std::vector< shared_ptr< X509Certificate > > &caCerts) |
| void | verify (shared_ptr< certificateChain > chain, const string &hostname) |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Default implementation for certificate verification.
Referenced by defaultCertificateVerifier::~defaultCertificateVerifier().
| void setX509RootCAs | ( | const std::vector< shared_ptr< X509Certificate > > & | caCerts | ) |
Sets the X.509 root CAs used for certificate verification.
| caCerts | list of root CAs |
References defaultCertificateVerifier::setX509TrustedCerts().
Referenced by defaultCertificateVerifier::verify().
| void setX509TrustedCerts | ( | const std::vector< shared_ptr< X509Certificate > > & | trustedCerts | ) |
Sets a list of X.509 certificates that are trusted.
| trustedCerts | list of trusted certificates |
Referenced by defaultCertificateVerifier::setX509RootCAs().
|
virtual |
Verify that the specified certificate chain is trusted.
| chain | certificate chain |
| hostname | server hostname |
| unsupportedCertificateTypeException | if a certificate in the chain is of unsupported format |
| certificateExpiredException | if a certificate in the chain has expired |
| certificateNotYetValidException | if a certificate in the chain is not yet valid |
| certificateNotTrustedException | if a certificate in the chain cannot be verified against root and/or trusted certificates |
| certificateIssuerVerificationException | if a certificate in the chain cannot be verified against the next certificate (issuer) |
| serverIdentityException | if the subject name of the certificate does not match the hostname of the server |
Implements certificateVerifier.
References certificateException::setCertificate(), and defaultCertificateVerifier::setX509RootCAs().
Referenced by defaultCertificateVerifier::~defaultCertificateVerifier().