Merge pull request #145 from 0xd34df00d/const_getCertificate

Added const overload for certificateException::getCertificate().
This commit is contained in:
Vincent Richard 2016-10-13 22:35:57 +02:00 committed by GitHub
commit 047cacb1db
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
} // security
} // vmime

View File

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