1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-15 14:05:03 -05:00
curl/lib/vtls
Javier Blazquez 40d2d39f86
rustls: only return CURLE_AGAIN when TLS session is fully drained
The code in cr_recv was returning prematurely as soon as the socket
reported no more data to read. However, this could be leaving some
unread plaintext data in the rustls session from a previous call,
causing causing the transfer to hang if the socket never receives
further data.

We need to ensure that the session is fully drained of plaintext data
before returning CURLE_AGAIN to the caller.

Reviewed-by: Jacob Hoffman-Andrews
Closes #6894
2021-04-15 08:19:49 +02:00
..
bearssl.c TLS: fix HTTP/2 selection 2021-04-02 22:53:17 +02:00
bearssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
gskit.c urldata: remove the _ORIG suffix from string names 2021-02-19 08:07:19 +01:00
gskit.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
gtls.c TLS: fix HTTP/2 selection 2021-04-02 22:53:17 +02:00
gtls.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
keylog.c curl.se: new home 2020-11-04 23:59:47 +01:00
keylog.h curl.se: new home 2020-11-04 23:59:47 +01:00
mbedtls_threadlock.c curl.se: new home 2020-11-04 23:59:47 +01:00
mbedtls_threadlock.h curl.se: new home 2020-11-04 23:59:47 +01:00
mbedtls.c TLS: fix HTTP/2 selection 2021-04-02 22:53:17 +02:00
mbedtls.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
mesalink.c vtls: add 'isproxy' argument to Curl_ssl_get/addsessionid() 2021-03-28 23:19:56 +02:00
mesalink.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
nss.c TLS: fix HTTP/2 selection 2021-04-02 22:53:17 +02:00
nssg.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
openssl.c openssl: Fix CURLOPT_SSLCERT_BLOB without CURLOPT_SSLCERT_KEY 2021-03-31 23:35:59 +02:00
openssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
rustls.c rustls: only return CURLE_AGAIN when TLS session is fully drained 2021-04-15 08:19:49 +02:00
rustls.h copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
schannel_verify.c schannel: Evaluate CURLOPT_SSL_OPTIONS via SSL_SET_OPTION macro 2021-03-06 02:01:35 -05:00
schannel.c TLS: fix HTTP/2 selection 2021-04-02 22:53:17 +02:00
schannel.h vtls: reduce conn->data use 2021-01-19 09:14:40 +01:00
sectransp.c TLS: fix HTTP/2 selection 2021-04-02 22:53:17 +02:00
sectransp.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
vtls.c vtls: fix addsessionid for non-proxy builds 2021-03-29 14:20:13 +02:00
vtls.h vtls: add 'isproxy' argument to Curl_ssl_get/addsessionid() 2021-03-28 23:19:56 +02:00
wolfssl.c TLS: fix HTTP/2 selection 2021-04-02 22:53:17 +02:00
wolfssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00