1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-11 14:08:07 -05:00
curl/lib/vtls
Michael Forney 9024b01387 bearssl: Improve I/O handling
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-12-31 02:43:47 -05:00
..
bearssl.c bearssl: Improve I/O handling 2019-12-31 02:43:47 -05:00
bearssl.h TLS: add BearSSL vtls implementation 2019-11-26 08:32:23 +01:00
gskit.c gskit: use the generic Curl_socketpair 2019-10-10 11:04:38 +02:00
gskit.h copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
gtls.c gtls: make gnutls_bye() not wait for response on shutdown 2019-10-31 09:10:50 +01:00
gtls.h
mbedtls.c mbedtls: add error message for cert validity starting in the future 2019-11-02 22:59:13 +01:00
mbedtls.h copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
mesalink.c vtls: fix narrowing conversion warnings 2019-09-23 09:44:35 +02:00
mesalink.h vtls: add a MesaLink vtls backend 2018-09-13 08:26:37 +02:00
nss.c build: Disable Visual Studio warning "conditional expression is constant" 2019-12-01 19:01:02 -05:00
nssg.h
openssl.c openssl: CURLSSLOPT_NO_PARTIALCHAIN can disable partial cert chains 2019-12-03 16:28:50 +01:00
openssl.h
polarssl_threadlock.c copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
polarssl_threadlock.h copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
polarssl.c vtls: fix narrowing conversion warnings 2019-09-23 09:44:35 +02:00
polarssl.h copyrights: fix copyright year range 2019-11-08 14:51:42 +01:00
schannel_verify.c strerror: Add Curl_winapi_strerror for Win API specific errors 2019-12-01 18:12:36 -05:00
schannel.c schannel: fix --tls-max for when min is --tlsv1 or default 2019-11-24 03:16:26 -05:00
schannel.h schannel: use Curl_ prefix for global private symbols 2018-11-01 09:39:45 +01:00
sectransp.c vtls: Fix comment typo about macosx-version-min compiler flag 2019-09-27 01:46:49 -04:00
sectransp.h Secure Transport: no more "darwinssl" 2019-02-28 08:42:59 +01:00
vtls.c vtls: make BearSSL possible to set with CURL_SSL_BACKEND 2019-12-10 15:35:23 +01:00
vtls.h TLS: add BearSSL vtls implementation 2019-11-26 08:32:23 +01:00
wolfssl.c wolfssl: fix key pinning build error 2019-06-11 07:46:04 +02:00
wolfssl.h wolfssl: refer to it as wolfSSL only 2019-06-10 09:18:16 +02:00