Lines Matching refs:data
2 Writing early data
5 An application function to write and send a buffer of data to a server through
33 where ssl is the SSL context to use, data_to_write the address of the data
34 buffer and data_to_write_len the number of data bytes. The handshake may
37 completing the handshake before to write and send data to the server. The
38 mbedtls_ssl_write() may not be able to write and send all data in one go thus
39 the need for a loop calling it as long as there are still data to write and
42 An application function to write and send early data and only early data,
43 data sent during the first flight of client messages while the handshake is in
77 All together, code to write and send a buffer of data as long as possible as
78 early data and then as standard post-handshake application data could
102 Finally, taking into account that the server may reject early data, application
103 code to write and send a buffer of data could plausibly look like:
147 Reading early data
149 Mbed TLS provides the mbedtls_ssl_read_early_data() API to read the early data
154 the reception of early data is signaled by an API returning the
155 MBEDTLS_ERR_SSL_RECEIVED_EARLY_DATA error code. Early data can then be read
170 could be adapted to handle early data in the following way: