summaryrefslogtreecommitdiff
path: root/lib/vtls/bearssl.c
Commit message (Collapse)AuthorAgeFilesLines
* bearssl: remove Curl_ prefix from static functionsDaniel Stenberg2021-01-141-31/+31
|
* failf: remove newline from formatting stringsDaniel Stenberg2020-12-251-2/+2
| | | | | | | | | ... as failf adds one itself. Also: add an assert() to failf() that triggers on a newline in the format string! Closes #6365
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* bearssl: fix build with disabled proxy supportBaruch Siach2020-07-121-2/+9
| | | | | | | | Avoid reference to fields that do not exist when CURL_DISABLE_PROXY is defined. Reviewed-by: Nicolas Sterchele Closes #5666
* timeouts: change millisecond timeouts to timediff_t from time_tDaniel Stenberg2020-05-301-1/+1
| | | | | | | For millisecond timers we like timediff_t better. Also, time_t can be unsigned so returning a negative value doesn't work then. Closes #5479
* bearssl: remove the BACKEND define kludgeDaniel Stenberg2020-03-191-48/+52
|
* bearssl: Improve I/O handlingMichael Forney2019-12-311-85/+77
| | | | | | | | | | | | | | | | | 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
* TLS: add BearSSL vtls implementationMichael Forney2019-11-261-0/+874
Closes #4597