summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/modules/ssl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/modules/ssl.h b/include/modules/ssl.h
index 9cc504128..d3372c509 100644
--- a/include/modules/ssl.h
+++ b/include/modules/ssl.h
@@ -204,6 +204,13 @@ class SSLIOHook : public IOHook
* @param out String where the ciphersuite string will be appended to
*/
virtual void GetCiphersuite(std::string& out) const = 0;
+
+
+ /** Retrieves the name of the SSL connection which is sent via SNI.
+ * @param out String that the server name will be appended to.
+ * returns True if the server name was retrieved; otherwise, false.
+ */
+ virtual bool GetServerName(std::string& out) const = 0;
};
/** Helper functions for obtaining SSL client certificates and key fingerprints