mirror of https://github.com/Icinga/icinga2.git
parent
d7fc37b12e
commit
f67a11c183
|
@ -200,8 +200,10 @@ size_t TlsStream::Read(void *buffer, size_t count)
|
||||||
Close();
|
Close();
|
||||||
return count - left;
|
return count - left;
|
||||||
default:
|
default:
|
||||||
msgbuf << "SSL_read() failed with code " << ERR_peek_error() << ", \"" << ERR_error_string(ERR_peek_error(), errbuf) << "\"";
|
if (ERR_peek_error() != 0) {
|
||||||
Log(LogCritical, "TlsStream", msgbuf.str());
|
msgbuf << "SSL_read() failed with code " << ERR_peek_error() << ", \"" << ERR_error_string(ERR_peek_error(), errbuf) << "\"";
|
||||||
|
Log(LogCritical, "TlsStream", msgbuf.str());
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_THROW_EXCEPTION(openssl_error()
|
BOOST_THROW_EXCEPTION(openssl_error()
|
||||||
<< boost::errinfo_api_function("SSL_read")
|
<< boost::errinfo_api_function("SSL_read")
|
||||||
|
@ -260,8 +262,10 @@ void TlsStream::Write(const void *buffer, size_t count)
|
||||||
Close();
|
Close();
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
msgbuf << "SSL_write() failed with code " << ERR_peek_error() << ", \"" << ERR_error_string(ERR_peek_error(), errbuf) << "\"";
|
if (ERR_peek_error() != 0) {
|
||||||
Log(LogCritical, "TlsStream", msgbuf.str());
|
msgbuf << "SSL_write() failed with code " << ERR_peek_error() << ", \"" << ERR_error_string(ERR_peek_error(), errbuf) << "\"";
|
||||||
|
Log(LogCritical, "TlsStream", msgbuf.str());
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_THROW_EXCEPTION(openssl_error()
|
BOOST_THROW_EXCEPTION(openssl_error()
|
||||||
<< boost::errinfo_api_function("SSL_write")
|
<< boost::errinfo_api_function("SSL_write")
|
||||||
|
|
Loading…
Reference in New Issue