Added const overload for certificateException::getCertificate().

This commit is contained in:
0xd34df00d 2016-10-08 15:08:35 -04:00
parent 265baf17aa
commit d2f4436a5c
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;