Function bearssl::br_ssl_engine_set_buffers_bidi
[−]
[src]
pub unsafe extern "C" fn br_ssl_engine_set_buffers_bidi(
cc: *mut br_ssl_engine_context,
ibuf: *mut c_void,
ibuf_len: usize,
obuf: *mut c_void,
obuf_len: usize
)
\brief Set the I/O buffers for the SSL engine.
Once this call has been made, br_ssl_client_reset()
or
br_ssl_server_reset()
MUST be called before using the context.
This function is similar to br_ssl_engine_set_buffer()
, except
that it enforces full-duplex mode, and the two I/O buffers are
provided as separate chunks.
The macros BR_SSL_BUFSIZE_INPUT
and BR_SSL_BUFSIZE_OUTPUT
evaluate to the optimal (maximum) sizes for the input and output
buffer, respectively.
\param cc SSL engine context \param ibuf input buffer. \param ibuf_len input buffer length (in bytes). \param obuf output buffer. \param obuf_len output buffer length (in bytes).