inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 319218db85de50df01f0310f241a336e472d68fd
parent 29f425402927eb07913e9162dd4a230db68ff2e4
Author: Peter Powell <petpow@saberuk.com>
Date:   Mon, 13 May 2019 14:26:16 +0100

Allow SSLIOHook instances to override Get{Certificate,Fingerprint}.

Diffstat:
Minclude/modules/ssl.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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())