From 4522121196f11de0200ed54ea50830c1baf017a6 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 30 Oct 2005 15:02:39 +0000 Subject: Moved certificate code into 'vmime::net::security::cert' namespace. --- examples/example6.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/example6.cpp') diff --git a/examples/example6.cpp b/examples/example6.cpp index bcbdcaf6..e64db44b 100644 --- a/examples/example6.cpp +++ b/examples/example6.cpp @@ -101,11 +101,11 @@ private: #if VMIME_HAVE_TLS_SUPPORT // Certificate verifier (TLS/SSL) -class interactiveCertificateVerifier : public vmime::net::tls::defaultCertificateVerifier +class interactiveCertificateVerifier : public vmime::security::cert::defaultCertificateVerifier { public: - void verify(vmime::ref chain) + void verify(vmime::ref chain) { try { @@ -116,7 +116,7 @@ public: catch (vmime::exceptions::certificate_verification_exception&) { // Obtain subject's certificate - vmime::ref cert = chain->getAt(0); + vmime::ref cert = chain->getAt(0); std::cout << std::endl; std::cout << "Server sent a '" << cert->getType() << "'" << " certificate." << std::endl; @@ -133,7 +133,7 @@ public: if (cert->getType() == "X.509") { m_trustedCerts.push_back(cert.dynamicCast - ()); + ()); } return; @@ -146,11 +146,11 @@ public: private: - static std::vector > m_trustedCerts; + static std::vector > m_trustedCerts; }; -std::vector > +std::vector > interactiveCertificateVerifier::m_trustedCerts; #endif // VMIME_HAVE_TLS_SUPPORT -- cgit v1.2.3