mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:33:33 +03:00
openssl: error on SSL_ERROR_SYSCALL
Convert the debug-only handling of SSL_ERROR_SYSCALL so that it is enabled in all builds with openssl. This should not make a difference in supported OpenSSL versions, but if whatever version or fork we link against *does* return SSL_ERROR_SYSCALL, handle this as a fatal error. Fixes #17471 Reported-by: Michael Kaufmann Closes #17531
This commit is contained in:
parent
5586520745
commit
14b42c89db
3 changed files with 24 additions and 26 deletions
|
|
@ -120,9 +120,7 @@ class TestErrors:
|
|||
r = curl.http_download(urls=[url], alpn_proto=proto, extra_args=[
|
||||
'--parallel', '--trace-config', 'ssl'
|
||||
])
|
||||
if proto == 'http/1.0' and not env.curl_uses_lib('wolfssl') and \
|
||||
(env.curl_is_debug() or
|
||||
not env.curl_uses_any_libs(['openssl', 'libressl', 'aws-lc'])):
|
||||
if proto == 'http/1.0':
|
||||
# we are inconsistent if we fail or not in missing TLS shutdown
|
||||
# openssl code ignore such errors intentionally in non-debug builds
|
||||
r.check_exit_code(56)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue