curl/lib/vtls
Daniel Stenberg 5ec759247a
openssl: return -1 on error in the BIO callbacks
BIO_read and BIO_write return negative numbers on error, including
retryable ones. A regression from 55807e6. Both branches should be
returning -1.

The APIs are patterned after POSIX read and write which, similarly,
return -1 on errors, not zero, with EAGAIN treated as an error.

Bug: https://github.com/curl/curl/issues/10013#issuecomment-1335308146
Reported-by: David Benjamin
Closes #10021
2022-12-06 09:50:29 +01:00
..
bearssl.c tls: backends use connection filters for IO, enabling HTTPS-proxy 2022-11-28 13:56:23 +01:00
bearssl.h
gskit.c vtls: localization of state data in filters 2022-11-22 14:25:50 +01:00
gskit.h
gtls.c gnutls: use common gnutls init and verify code for ngtcp2 2022-12-01 10:57:36 +01:00
gtls.h gnutls: use common gnutls init and verify code for ngtcp2 2022-12-01 10:57:36 +01:00
hostcheck.c
hostcheck.h
keylog.c
keylog.h
mbedtls_threadlock.c
mbedtls_threadlock.h
mbedtls.c openssl/mbedtls: use %d for outputing port with failf (int) 2022-11-29 23:16:47 +01:00
mbedtls.h
nss.c vtls: localization of state data in filters 2022-11-22 14:25:50 +01:00
nssg.h
openssl.c openssl: return -1 on error in the BIO callbacks 2022-12-06 09:50:29 +01:00
openssl.h
rustls.c tls: backends use connection filters for IO, enabling HTTPS-proxy 2022-11-28 13:56:23 +01:00
rustls.h
schannel_verify.c vtls: localization of state data in filters 2022-11-22 14:25:50 +01:00
schannel.c tls: backends use connection filters for IO, enabling HTTPS-proxy 2022-11-28 13:56:23 +01:00
schannel.h vtls: localization of state data in filters 2022-11-22 14:25:50 +01:00
sectransp.c tls: backends use connection filters for IO, enabling HTTPS-proxy 2022-11-28 13:56:23 +01:00
sectransp.h
vtls_int.h vtls: fix typo in vtls_int.h 2022-11-28 19:51:22 +01:00
vtls.c openssl/mbedtls: use %d for outputing port with failf (int) 2022-11-29 23:16:47 +01:00
vtls.h tls: backends use connection filters for IO, enabling HTTPS-proxy 2022-11-28 13:56:23 +01:00
wolfssl.c tls: backends use connection filters for IO, enabling HTTPS-proxy 2022-11-28 13:56:23 +01:00
wolfssl.h
x509asn1.c vtls: localization of state data in filters 2022-11-22 14:25:50 +01:00
x509asn1.h vtls: localization of state data in filters 2022-11-22 14:25:50 +01:00