curl/lib/vtls
John Hawthorn 6d44625305
OpenSSL: clear error queue after SSL_shutdown
We've seen errors left in the OpenSSL error queue (specifically,
"shutdown while in init") by adding some logging it revealed that the
source was this file.

Since we call SSL_read and SSL_shutdown here, but don't check the return
code for an error, we should clear the OpenSSL error queue in case one
was raised.

This didn't affect curl because we call ERR_clear_error before every
write operation (a0dd9df9ab), but when
libcurl is used in a process with other OpenSSL users, they may detect
an OpenSSL error pushed by libcurl's SSL_shutdown as if it was their
own.

Co-authored-by: Satana de Sant'Ana <satana@skylittlesystem.org>

Closes #11736
2023-08-26 19:36:40 +02:00
..
bearssl.c spelling: use 'reuse' not 're-use' in code and elsewhere 2023-08-23 23:22:36 +02:00
bearssl.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
gtls.c spelling: use 'reuse' not 're-use' in code and elsewhere 2023-08-23 23:22:36 +02:00
gtls.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
hostcheck.c gskit: remove 2023-08-07 20:57:48 +02:00
hostcheck.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
keylog.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
keylog.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
mbedtls_threadlock.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
mbedtls_threadlock.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
mbedtls.c spelling: use 'reuse' not 're-use' in code and elsewhere 2023-08-23 23:22:36 +02:00
mbedtls.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
openssl.c OpenSSL: clear error queue after SSL_shutdown 2023-08-26 19:36:40 +02:00
openssl.h ngtcp2: add CURLOPT_SSL_CTX_FUNCTION support for openssl+wolfssl 2023-01-10 13:41:21 +01:00
rustls.c trace: make tracing available in non-debug builds 2023-08-03 17:32:25 +02:00
rustls.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
schannel_int.h schannel: verify hostname independent of verify cert 2023-08-11 12:27:18 -04:00
schannel_verify.c schannel: verify hostname independent of verify cert 2023-08-11 12:27:18 -04:00
schannel.c spelling: use 'reuse' not 're-use' in code and elsewhere 2023-08-23 23:22:36 +02:00
schannel.h schannel: verify hostname independent of verify cert 2023-08-11 12:27:18 -04:00
sectransp.c spelling: use 'reuse' not 're-use' in code and elsewhere 2023-08-23 23:22:36 +02:00
sectransp.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
vtls_int.h gskit: remove 2023-08-07 20:57:48 +02:00
vtls.c spelling: use 'reuse' not 're-use' in code and elsewhere 2023-08-23 23:22:36 +02:00
vtls.h vtls: clarify "ALPN: offers" message 2023-08-01 08:16:14 +02:00
wolfssl.c spelling: use 'reuse' not 're-use' in code and elsewhere 2023-08-23 23:22:36 +02:00
wolfssl.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
x509asn1.c gskit: remove 2023-08-07 20:57:48 +02:00
x509asn1.h gskit: remove 2023-08-07 20:57:48 +02:00