aboutsummaryrefslogtreecommitdiffstats
path: root/examples/example6.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/example6.cpp5
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;