Ticket #7859: asiossl.patch
File asiossl.patch, 1.6 KB (added by , 10 years ago) |
---|
-
boost/asio/ssl/detail/engine.hpp
old new 94 94 boost::system::error_code& ec, std::size_t& bytes_transferred); 95 95 96 96 // Get output data to be written to the transport. 97 BOOST_ASIO_DECL boost::asio:: mutable_buffers_1 get_output(97 BOOST_ASIO_DECL boost::asio::const_buffers_1 get_output( 98 98 const boost::asio::mutable_buffer& data); 99 99 100 100 // Put input data that was read from the transport. -
boost/asio/ssl/detail/impl/engine.ipp
old new 162 161 boost::asio::buffer_size(data), ec, &bytes_transferred); 163 162 } 164 163 165 boost::asio:: mutable_buffers_1 engine::get_output(164 boost::asio::const_buffers_1 engine::get_output( 166 165 const boost::asio::mutable_buffer& data) 167 166 { 168 167 int length = ::BIO_read(ext_bio_, 169 168 boost::asio::buffer_cast<void*>(data), 170 static_cast<int>(boost::asio::buffer_size(data)));169 boost::asio::buffer_size(data)); 171 170 172 return boost::asio::buffer( data,171 return boost::asio::buffer((const void*)boost::asio::buffer_cast<void*>(data), 173 172 length > 0 ? static_cast<std::size_t>(length) : 0); 174 173 } 175 174 … … 178 177 { 179 178 int length = ::BIO_write(ext_bio_, 180 179 boost::asio::buffer_cast<const void*>(data), 181 static_cast<int>(boost::asio::buffer_size(data)));180 boost::asio::buffer_size(data)); 182 181 183 182 return boost::asio::buffer(data + 184 183 (length > 0 ? static_cast<std::size_t>(length) : 0));