summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-05-13 14:26:16 +0100
committerPeter Powell <petpow@saberuk.com>2019-05-13 14:28:25 +0100
commit319218db85de50df01f0310f241a336e472d68fd (patch)
tree3f59950d94964e523747253f7c21ca2d81136fab /include
parent29f425402927eb07913e9162dd4a230db68ff2e4 (diff)
Allow SSLIOHook instances to override Get{Certificate,Fingerprint}.
Diffstat (limited to 'include')
-rw-r--r--include/modules/ssl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules/ssl.h b/include/modules/ssl.h
index 701c0d1f4..6fc2379ff 100644
--- a/include/modules/ssl.h
+++ b/include/modules/ssl.h
@@ -193,7 +193,7 @@ class SSLIOHook : public IOHook
* Get the certificate sent by this peer
* @return The SSL certificate sent by the peer, NULL if no cert was sent
*/
- ssl_cert* GetCertificate() const
+ virtual ssl_cert* GetCertificate() const
{
return certificate;
}
@@ -203,7 +203,7 @@ class SSLIOHook : public IOHook
* @return The fingerprint of the SSL client certificate sent by the peer,
* empty if no cert was sent
*/
- std::string GetFingerprint() const
+ virtual std::string GetFingerprint() const
{
ssl_cert* cert = GetCertificate();
if (cert && cert->IsUsable())