Merge pull request #145 from 0xd34df00d/const_getCertificate
Added const overload for certificateException::getCertificate().
This commit is contained in:
commit
047cacb1db
@ -70,6 +70,12 @@ shared_ptr <certificate> certificateException::getCertificate()
|
||||
}
|
||||
|
||||
|
||||
shared_ptr <const certificate> certificateException::getCertificate() const
|
||||
{
|
||||
return m_cert;
|
||||
}
|
||||
|
||||
|
||||
} // cert
|
||||
} // security
|
||||
} // vmime
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user