diff options
author | Vincent Richard <[email protected]> | 2014-07-24 18:59:52 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-07-24 18:59:52 +0000 |
commit | 00e07962e79faf0b6f7c2c61f298e3da2469a4eb (patch) | |
tree | 75d21f1c72b1811151e926909fe162b5491b83ef /examples | |
parent | Fixed example build command. (diff) | |
download | vmime-00e07962e79faf0b6f7c2c61f298e3da2469a4eb.tar.gz vmime-00e07962e79faf0b6f7c2c61f298e3da2469a4eb.zip |
Certificate exception differentiation for easier error handling.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example6_certificateVerifier.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/example6_certificateVerifier.hpp b/examples/example6_certificateVerifier.hpp index 65f0f4ad..e98f7874 100644 --- a/examples/example6_certificateVerifier.hpp +++ b/examples/example6_certificateVerifier.hpp @@ -15,7 +15,7 @@ public: defaultCertificateVerifier::verify(chain, hostname); } - catch (vmime::exceptions::certificate_verification_exception&) + catch (vmime::security::cert::certificateException&) { // Obtain subject's certificate vmime::shared_ptr <vmime::security::cert::certificate> cert = chain->getAt(0); @@ -44,7 +44,7 @@ public: return; } - throw vmime::exceptions::certificate_verification_exception + throw vmime::security::cert::certificateException ("User did not accept the certificate."); } } |