- char errbuf[1024];
- ERR_print_errors_fp(stdout);
- if (err == SSL_ERROR_WANT_CONNECT)
- ServerInstance->Log(DEBUG,"Closing in DoWrite() due to error: SSL_ERROR_WANT_CONNECT");
- if (err == SSL_ERROR_WANT_ACCEPT)
- ServerInstance->Log(DEBUG,"Closing in DoWrite() due to error: SSL_ERROR_WANT_ACCEPT");
- if (err == SSL_ERROR_ZERO_RETURN)
- ServerInstance->Log(DEBUG,"Closing in DoWrite() due to error: SSL_ERROR_ZERO_RETURN");
- if (err == SSL_ERROR_WANT_X509_LOOKUP)
- ServerInstance->Log(DEBUG,"Closing in DoWrite() due to error: SSL_ERROR_WANT_X509_LOOKUP");
- if (err == SSL_ERROR_SSL)
- ServerInstance->Log(DEBUG,"Closing in DoWrite() due to error: SSL_ERROR_SSL: %s", ERR_error_string(err, errbuf));
- if (err == SSL_ERROR_SYSCALL)
- ServerInstance->Log(DEBUG,"Closing in DoWrite() due to error: SSL_ERROR_SYSCALL: %d %s", errno, strerror(errno));
-