mirror of
https://github.com/boostorg/asio.git
synced 2026-02-24 14:22:08 +00:00
Handle SSL library errors.
[SVN r48686]
This commit is contained in:
@@ -159,6 +159,10 @@ public:
|
||||
0;
|
||||
int sys_error_code = ERR_get_error();
|
||||
|
||||
if (error_code == SSL_ERROR_SSL)
|
||||
return handler_(boost::system::error_code(
|
||||
error_code, boost::asio::error::get_ssl_category()), rc);
|
||||
|
||||
bool is_read_needed = (error_code == SSL_ERROR_WANT_READ);
|
||||
bool is_write_needed = (error_code == SSL_ERROR_WANT_WRITE ||
|
||||
::BIO_ctrl_pending( ssl_bio_ ));
|
||||
|
||||
Reference in New Issue
Block a user