From 319218db85de50df01f0310f241a336e472d68fd Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 13 May 2019 14:26:16 +0100 Subject: Allow SSLIOHook instances to override Get{Certificate,Fingerprint}. --- include/modules/ssl.h | 4 ++-- 1 file 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()) -- cgit v1.2.3