From d2f4436a5ce74df35c1cbce2b6ad57ba7bcf0478 Mon Sep 17 00:00:00 2001 From: 0xd34df00d <0xd34df00d@gmail.com> Date: Sat, 8 Oct 2016 15:08:35 -0400 Subject: [PATCH] Added const overload for certificateException::getCertificate(). --- src/vmime/security/cert/certificateException.cpp | 6 ++++++ src/vmime/security/cert/certificateException.hpp | 6 ++++++ 2 files changed, 12 insertions(+) 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;