From 87259631e4f9baf4cafb55a75db16ca9cc20d40e Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 10 Dec 2012 22:59:19 +0100 Subject: SSL server identity check. --- examples/example6.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/example6.cpp') 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 chain) + void verify(vmime::ref chain, const vmime::string& hostname) { try { @@ -176,6 +176,9 @@ public: { m_trustedCerts.push_back(cert.dynamicCast ()); + + setX509TrustedCerts(m_trustedCerts); + defaultCertificateVerifier::verify(chain, hostname); } return; -- cgit v1.2.3