mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:53:33 +03:00
OpenSSL/quictls: add support for TLSv1.3 early data
based on #16450 Adds support for TLSv1.3 early data for TCP and QUIC via ngtcp2. Closes #16477
This commit is contained in:
parent
b5d99a5474
commit
0d3b5937b3
12 changed files with 308 additions and 69 deletions
|
|
@ -382,6 +382,18 @@ class Env:
|
|||
def curl_is_debug() -> bool:
|
||||
return Env.CONFIG.curl_is_debug
|
||||
|
||||
@staticmethod
|
||||
def curl_can_early_data() -> bool:
|
||||
return Env.curl_uses_lib('gnutls') or \
|
||||
Env.curl_uses_lib('wolfssl') or \
|
||||
Env.curl_uses_lib('quictls') or \
|
||||
Env.curl_uses_lib('openssl')
|
||||
|
||||
@staticmethod
|
||||
def curl_can_h3_early_data() -> bool:
|
||||
return Env.curl_can_early_data() and \
|
||||
Env.curl_uses_lib('ngtcp2')
|
||||
|
||||
@staticmethod
|
||||
def have_h3() -> bool:
|
||||
return Env.have_h3_curl() and Env.have_h3_server()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue