mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
9024b01387
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 |
||
---|---|---|
.. | ||
bearssl.c | ||
bearssl.h | ||
gskit.c | ||
gskit.h | ||
gtls.c | ||
gtls.h | ||
mbedtls.c | ||
mbedtls.h | ||
mesalink.c | ||
mesalink.h | ||
nss.c | ||
nssg.h | ||
openssl.c | ||
openssl.h | ||
polarssl_threadlock.c | ||
polarssl_threadlock.h | ||
polarssl.c | ||
polarssl.h | ||
schannel_verify.c | ||
schannel.c | ||
schannel.h | ||
sectransp.c | ||
sectransp.h | ||
vtls.c | ||
vtls.h | ||
wolfssl.c | ||
wolfssl.h |