From b047c903da20862783b50af73594cce1592cbbfe Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 29 Oct 2017 11:15:47 +0000 Subject: Add support to IOHook for retrieving the hostname sent via SNI. --- include/modules/ssl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/modules') 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 -- cgit v1.2.3