From 999febbac6ee73cb0c307fef1469818d47ff685c Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 7 May 2009 04:33:43 +0000 Subject: Compile fix: openssl does not have an ISSL_CLOSING state, unlike gnutls git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11368 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_openssl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index f0a5f9908..b49d6b0b2 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -498,7 +498,7 @@ class ModuleSSLOpenSSL : public Module if (!Handshake(session)) { // Couldn't resume handshake. - errno = session->status == ISSL_CLOSING ? EIO : EAGAIN; + errno = session->status == ISSL_NONE ? EIO : EAGAIN; return -1; } } @@ -579,7 +579,7 @@ class ModuleSSLOpenSSL : public Module if (!Handshake(session)) { // Couldn't resume handshake. - errno = session->status == ISSL_CLOSING ? EIO : EAGAIN; + errno = session->status == ISSL_NONE ? EIO : EAGAIN; return -1; } } -- cgit v1.2.3