Add a workaround for compiling modules with Windows line endings.
m_ssl_openssl Return an error from the IOHook read and write functions if the handshake returns 0

The meaning of a 0 return value quoted from the manual:
The TLS/SSL handshake was not successful but was shut down controlled and by the specifications of the TLS/SSL protocol.
Merge pull request #935 from SaberUK/insp20+fix-crlf

Add a workaround for compiling modules with Windows line endings.
m_ssl_openssl Remove bogus errno assignment from CloseSession()
m_ssl_openssl Free the ssl_cert object as soon as the session is closed instead of waiting for the next VerifyCertificate() or new connection
m_ssl_openssl Reset data_to_write for new sessions
m_ssl_openssl Fix debug message
m_ssl_gnutls Refcount GnuTLS objects, free them when they are no longer in use instead of at /rehash ssl time
Add interface to SSL modules that allows other modules to obtain the raw SSL session of a socket
Initialize all fields of issl_session on module load in SSL modules