summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_buffer.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a return value check to tls13_buffer_extend().jsing2020-03-101-1/+4
| | | | | | | | | In the unlikely event that the return value from the read callback is larger than the number of bytes we asked for, we can end up incrementing buf->len beyond capacity. Check the return value from the read callback to prevent this. ok inoguchi@ tb@
* Add accessors to change the buffer in a handshake message.beck2019-11-201-1/+10
| | | | | | Needed for doing TLS 1.3 Post Handshake Handshake messages. ok jsing@
* Provide an extensible buffer implementation that uses a read callback.jsing2019-01-171-0/+125
The read callback returns a TLS13_IO_* value on EOF, failure, want pollin or want pollout, or a positive value indicating the number of bytes read. This will be used by upcoming TLSv1.3 handshake message and record processing code, both of which need the ability to read a fixed size header, before extending the buffer to the number of bytes specified in the header. ok beck@ tb@