This commit is contained in:
Vincent Richard 2016-11-02 22:27:51 +01:00
commit 9a1753dc6c
2 changed files with 12 additions and 0 deletions

View File

@ -70,6 +70,12 @@ shared_ptr <certificate> certificateException::getCertificate()
} }
shared_ptr <const certificate> certificateException::getCertificate() const
{
return m_cert;
}
} // cert } // cert
} // security } // security
} // vmime } // vmime

View File

@ -73,6 +73,12 @@ public:
*/ */
shared_ptr <certificate> getCertificate(); shared_ptr <certificate> getCertificate();
/** Returns the certificate on which the problem occured.
*
* @return certificate
*/
shared_ptr <const certificate> getCertificate() const;
private: private:
shared_ptr <certificate> m_cert; shared_ptr <certificate> m_cert;