aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules
diff options
context:
space:
mode:
authorGravatar Attila Molnar2016-04-28 17:06:16 +0200
committerGravatar Attila Molnar2016-04-28 17:06:16 +0200
commitf91da925b585414ab8e768aa331f37ca2d348e2e (patch)
tree72101612a78763a9b7294490ebb1a16cb7407ca4 /include/modules
parentAdd SSLIOHook::IsSSL() to determine whether a socket is using SSL or not (diff)
downloadinspircd++-f91da925b585414ab8e768aa331f37ca2d348e2e.tar.gz
inspircd++-f91da925b585414ab8e768aa331f37ca2d348e2e.tar.bz2
inspircd++-f91da925b585414ab8e768aa331f37ca2d348e2e.zip
Export the GetCiphersuite() method from the SSL modules
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/ssl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/modules/ssl.h b/include/modules/ssl.h
index adc78e324..9cc504128 100644
--- a/include/modules/ssl.h
+++ b/include/modules/ssl.h
@@ -198,6 +198,12 @@ class SSLIOHook : public IOHook
return cert->GetFingerprint();
return "";
}
+
+ /**
+ * Get the ciphersuite negotiated with the peer
+ * @param out String where the ciphersuite string will be appended to
+ */
+ virtual void GetCiphersuite(std::string& out) const = 0;
};
/** Helper functions for obtaining SSL client certificates and key fingerprints