]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_ssl_openssl.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / extra / m_ssl_openssl.cpp
index 8a736e12151a2c3b8acbbef64d135624e8ce5bf0..b741c67b568d38ce5cb2768b431d6bf1457fc1a3 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-
+ /* HACK: This prevents OpenSSL on OS X 10.7 and later from spewing deprecation
+  * warnings for every single function call. As far as I (SaberUK) know, Apple
+  * have no plans to remove OpenSSL so this warning just causes needless spam.
+  */
+#ifdef __APPLE__
+# define __AVAILABILITYMACROS__
+# define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER
+#endif
 #include "inspircd.h"
 #include <openssl/ssl.h>
 #include <openssl/err.h>
@@ -423,6 +431,7 @@ class ModuleSSLOpenSSL : public Module
                        {
                                // Client closed connection.
                                CloseSession(session);
+                               user->SetError("Connection closed");
                                return -1;
                        }
                        else if (ret < 0)