]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules/ssl.h
Add support to IOHook for retrieving the hostname sent via SNI.
[user/henk/code/inspircd.git] / include / modules / ssl.h
index 9cc504128daae20a0daee6b4ea0c2880d8ccaa67..d3372c5094f79b2b2563dd9fe0654c0d909bc1d9 100644 (file)
@@ -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