diff options
author | Peter Powell <petpow@saberuk.com> | 2017-10-29 11:15:47 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-10-29 11:15:47 +0000 |
commit | b047c903da20862783b50af73594cce1592cbbfe (patch) | |
tree | 145ed0054d272153295b5757e5722195ba3f3ca6 /include/modules/ssl.h | |
parent | d865b434865907bfad0a187dd403d4ca8144e469 (diff) |
Add support to IOHook for retrieving the hostname sent via SNI.
Diffstat (limited to 'include/modules/ssl.h')
-rw-r--r-- | include/modules/ssl.h | 7 |
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 |