Function bearssl::br_sslio_read_all [] [src]

pub unsafe extern "C" fn br_sslio_read_all(
    cc: *mut br_sslio_context,
    dst: *mut c_void,
    len: usize
) -> c_int

\brief Read application data from a SSL connection.

This calls returns only when all requested len bytes are read, or an error is reached. Returned value is 0 on success, -1 on error. A normal (verified) SSL closure before that many bytes are obtained is reported as an error by this function.

\param cc SSL wrapper context. \param dst destination buffer for application data. \param len number of bytes to obtain. \return 0 on success, or -1 on error.