curl/lib/vtls
Jacob Hoffman-Andrews be8d77b146
rustls: remove incorrect EOF check
The update to rustls-ffi 0.8.0 changed handling of EOF and close_notify.
From the CHANGELOG:

> Handling of unclean close and the close_notify TLS alert. Mirroring
> upstream changes, a rustls_connection now tracks TCP closed state like
> so: rustls_connection_read_tls considers a 0-length read from its
> callback to mean "TCP stream was closed by peer."  If that happens
> before the peer sent close_notify, rustls_connection_read will return
> RUSTLS_RESULT_UNEXPECTED_EOF once the available plaintext bytes are
> exhausted. This is useful to protect against truncation attacks. Note:
> some TLS implementations don't send close_notify. If you are already
> getting length information from your protocol (e.g. Content-Length in
> HTTP) you may choose to ignore UNEXPECTED_EOF so long as the number of
> plaintext bytes was as expected.

That means we don't need to check for unclean EOF in `cr_recv()`,
because `process_new_packets()` will give us an error if appropriate.

Closes #8003
2021-11-13 22:57:20 +01:00
..
bearssl.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
bearssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
gskit.c lib: don't use strerror() 2021-09-09 07:53:42 +02:00
gskit.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
gtls.c lib: avoid fallthrough cases in switch statements 2021-09-29 10:00:52 +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.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
mbedtls.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
mbedtls_threadlock.c misc: update incorrect copyright year ranges 2021-08-16 11:21:47 +02:00
mbedtls_threadlock.h curl.se: new home 2020-11-04 23:59:47 +01:00
mesalink.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
mesalink.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
nss.c tls: remove newline from three infof() calls 2021-10-19 23:03:57 +02:00
nssg.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
openssl.c openssl: if verifypeer is not requested, skip the CA loading 2021-10-22 16:16:19 +02:00
openssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
rustls.c rustls: remove incorrect EOF check 2021-11-13 22:57:20 +01:00
rustls.h copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
schannel.c schannel: fix memory leak due to failed SSL connection 2021-11-02 15:34:04 -04:00
schannel.h schannel: don't use static to store selected ciphers 2021-05-24 07:56:05 +02:00
schannel_verify.c vtls: fix typo in schannel_verify.c 2021-08-13 17:39:59 +02:00
sectransp.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
sectransp.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
vtls.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
vtls.h vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
wolfssl.c tls: remove newline from three infof() calls 2021-10-19 23:03:57 +02:00
wolfssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00