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 | |
![]() | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
Default implementation for certificate verification.
void setX509RootCAs | ( | const std::vector< shared_ptr< X509Certificate > > & | caCerts | ) |
Sets the X.509 root CAs used for certificate verification.
caCerts | list of root CAs |
void setX509TrustedCerts | ( | const std::vector< shared_ptr< X509Certificate > > & | trustedCerts | ) |
Sets a list of X.509 certificates that are trusted.
trustedCerts | list of trusted certificates |
|
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.