curl/lib/vtls
Jacob Hoffman-Andrews 00f4ed2aad
rustls: read of zero bytes might be okay
When we're reading out plaintext from rustls' internal buffers, we might
get a read of zero bytes (meaning a clean TCP close, including
close_notify). However, we shouldn't return immediately when that
happens, since we may have already copied out some plaintext bytes.
Break out of the loop when we get a read of zero bytes, and figure out
which path we're dealing with.

Acked-by: Kevin Burke

Closes #8003
2021-11-13 22:57:51 +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
gskit.c lib: don't use strerror() 2021-09-09 07:53:42 +02:00
gskit.h
gtls.c lib: avoid fallthrough cases in switch statements 2021-09-29 10:00:52 +02:00
gtls.h
keylog.c
keylog.h
mbedtls_threadlock.c misc: update incorrect copyright year ranges 2021-08-16 11:21:47 +02:00
mbedtls_threadlock.h
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
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
nss.c tls: remove newline from three infof() calls 2021-10-19 23:03:57 +02:00
nssg.h
openssl.c openssl: if verifypeer is not requested, skip the CA loading 2021-10-22 16:16:19 +02:00
openssl.h
rustls.c rustls: read of zero bytes might be okay 2021-11-13 22:57:51 +01:00
rustls.h
schannel_verify.c vtls: fix typo in schannel_verify.c 2021-08-13 17:39:59 +02: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
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
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