diff --git a/src/vmime/security/cert/certificateException.cpp b/src/vmime/security/cert/certificateException.cpp index 29c987a9..bf21fae2 100644 --- a/src/vmime/security/cert/certificateException.cpp +++ b/src/vmime/security/cert/certificateException.cpp @@ -70,6 +70,12 @@ shared_ptr certificateException::getCertificate() } +shared_ptr certificateException::getCertificate() const +{ + return m_cert; +} + + } // cert } // security } // vmime diff --git a/src/vmime/security/cert/certificateException.hpp b/src/vmime/security/cert/certificateException.hpp index b60c06f6..c6c76127 100644 --- a/src/vmime/security/cert/certificateException.hpp +++ b/src/vmime/security/cert/certificateException.hpp @@ -73,6 +73,12 @@ public: */ shared_ptr getCertificate(); + /** Returns the certificate on which the problem occured. + * + * @return certificate + */ + shared_ptr getCertificate() const; + private: shared_ptr m_cert;