mirror of
https://github.com/curl/curl.git
synced 2026-07-24 10:07:20 +03:00
openssl-quic: ignore ciphers for h3
OpenSSL QUIC method errors on setting TLSv1.2 ciphers, where other methods do not. Refrain setting --ciphers when min TLS version is 1.3 or higher. Refrain setting --tls13-ciphers when max TLS version is less than 1.3. Add 2 test cases. Fixes #16232 Reported-by: zzq1015 on github Closes #16235
This commit is contained in:
parent
f72b848092
commit
cbf8fecda5
2 changed files with 28 additions and 3 deletions
|
|
@ -424,3 +424,25 @@ class TestSSLUse:
|
|||
r = curl.http_get(url=url, alpn_proto=proto, extra_args=xargs)
|
||||
assert r.exit_code == 0, f'{r}'
|
||||
assert r.json['SSL_SESSION_RESUMED'] == 'Resumed', f'{r.json}\n{r.dump_logs()}'
|
||||
|
||||
# verify the ciphers are ignored when talking TLSv1.3 only
|
||||
# see issue #16232
|
||||
def test_17_16_h3_ignore_ciphers12(self, env: Env):
|
||||
proto = 'h3'
|
||||
if proto == 'h3' and not env.have_h3():
|
||||
pytest.skip("h3 not supported")
|
||||
curl = CurlClient(env=env)
|
||||
url = f'https://{env.authority_for(env.domain1, proto)}/curltest/sslinfo'
|
||||
r = curl.http_get(url=url, alpn_proto=proto, extra_args=[
|
||||
'--ciphers', 'NONSENSE'
|
||||
])
|
||||
assert r.exit_code == 0, f'{r}'
|
||||
|
||||
def test_17_17_h1_ignore_ciphers13(self, env: Env):
|
||||
proto = 'http/1.1'
|
||||
curl = CurlClient(env=env)
|
||||
url = f'https://{env.authority_for(env.domain1, proto)}/curltest/sslinfo'
|
||||
r = curl.http_get(url=url, alpn_proto=proto, extra_args=[
|
||||
'--tls13-ciphers', 'NONSENSE', '--tls-max', '1.2'
|
||||
])
|
||||
assert r.exit_code == 0, f'{r}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue