diff options
author | Vincent Richard <[email protected]> | 2012-12-10 21:59:19 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2012-12-10 21:59:19 +0000 |
commit | 87259631e4f9baf4cafb55a75db16ca9cc20d40e (patch) | |
tree | 0a423447f8f028d9b215641d4047666cd2860d48 /examples | |
parent | Fixed doc for classes in "net" package not being generated. (diff) | |
download | vmime-87259631e4f9baf4cafb55a75db16ca9cc20d40e.tar.gz vmime-87259631e4f9baf4cafb55a75db16ca9cc20d40e.zip |
SSL server identity check.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example6.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/example6.cpp b/examples/example6.cpp index bcb2df9a..53ff978a 100644 --- a/examples/example6.cpp +++ b/examples/example6.cpp @@ -147,7 +147,7 @@ class interactiveCertificateVerifier : public vmime::security::cert::defaultCert { public: - void verify(vmime::ref <vmime::security::cert::certificateChain> chain) + void verify(vmime::ref <vmime::security::cert::certificateChain> chain, const vmime::string& hostname) { try { @@ -176,6 +176,9 @@ public: { m_trustedCerts.push_back(cert.dynamicCast <vmime::security::cert::X509Certificate>()); + + setX509TrustedCerts(m_trustedCerts); + defaultCertificateVerifier::verify(chain, hostname); } return; |