diff --git a/include/boost/asio/ssl/detail/openssl_stream_service.hpp b/include/boost/asio/ssl/detail/openssl_stream_service.hpp index 6e81c5ab..b33a7577 100644 --- a/include/boost/asio/ssl/detail/openssl_stream_service.hpp +++ b/include/boost/asio/ssl/detail/openssl_stream_service.hpp @@ -337,7 +337,7 @@ public: buffer_size = max_buffer_size; boost::function send_func = - boost::bind(&::SSL_write, boost::arg<1>(), + boost::bind(&::SSL_write, boost::arg<1>(), boost::asio::buffer_cast(*buffers.begin()), static_cast(buffer_size)); openssl_operation op( @@ -373,7 +373,7 @@ public: buffer_size = max_buffer_size; boost::function send_func = - boost::bind(&::SSL_write, boost::arg<1>(), + boost::bind(&::SSL_write, boost::arg<1>(), boost::asio::buffer_cast(*buffers.begin()), static_cast(buffer_size)); @@ -411,7 +411,7 @@ public: buffer_size = max_buffer_size; boost::function recv_func = - boost::bind(&::SSL_read, boost::arg<1>(), + boost::bind(&::SSL_read, boost::arg<1>(), boost::asio::buffer_cast(*buffers.begin()), static_cast(buffer_size)); openssl_operation op(recv_func, @@ -447,7 +447,7 @@ public: buffer_size = max_buffer_size; boost::function recv_func = - boost::bind(&::SSL_read, boost::arg<1>(), + boost::bind(&::SSL_read, boost::arg<1>(), boost::asio::buffer_cast(*buffers.begin()), static_cast(buffer_size));