aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/bearssl.c
AgeCommit message (Collapse)Author
2020-03-19bearssl: remove the BACKEND define kludgeDaniel Stenberg
2019-12-31bearssl: Improve I/O handlingMichael Forney
Factor out common I/O loop as bearssl_run_until, which reads/writes TLS records until the desired engine state is reached. This is now used for the handshake, read, write, and close. Match OpenSSL SSL_write behavior, and don't return the number of bytes written until the corresponding records have been completely flushed across the socket. This involves keeping track of the length of data buffered into the TLS engine, and assumes that when CURLE_AGAIN is returned, the write function will be called again with the same data and length arguments. This is the same requirement of SSL_write. Handle TLS close notify as EOF when reading by returning 0. Closes https://github.com/curl/curl/pull/4748
2019-11-26TLS: add BearSSL vtls implementationMichael Forney
Closes #4597