mirror of
https://github.com/curl/curl.git
synced 2026-07-30 14:38:58 +03:00
ssl: support Apple SecTrust configurations
- configure/cmake support for enabling the option - supported in OpenSSL and GnuTLS backends - when configured, Apple SecTrust is the default trust store for peer verification. When one of the CURLOPT_* for adding certificates is used, that default does not apply. - add documentation of build options and SSL use Closes #18703
This commit is contained in:
parent
9cc1ee55a4
commit
eefd03c572
29 changed files with 1377 additions and 604 deletions
|
|
@ -610,6 +610,8 @@ class TestDownload:
|
|||
pytest.skip("h3 not supported")
|
||||
if proto != 'h3' and sys.platform.startswith('darwin') and env.ci_run:
|
||||
pytest.skip('failing on macOS CI runners')
|
||||
if proto == 'h3' and sys.platform.startswith('darwin') and env.curl_uses_lib('gnutls'):
|
||||
pytest.skip('h3 gnutls early data failing on macOS')
|
||||
count = 2
|
||||
docname = 'data-10k'
|
||||
# we want this test to always connect to nghttpx, since it is
|
||||
|
|
|
|||
|
|
@ -693,6 +693,8 @@ class TestUpload:
|
|||
pytest.skip("h3 not supported")
|
||||
if proto != 'h3' and sys.platform.startswith('darwin') and env.ci_run:
|
||||
pytest.skip('failing on macOS CI runners')
|
||||
if proto == 'h3' and sys.platform.startswith('darwin') and env.curl_uses_lib('gnutls'):
|
||||
pytest.skip('h3 gnutls early data failing on macOS')
|
||||
count = 2
|
||||
# we want this test to always connect to nghttpx, since it is
|
||||
# the only server we have that supports TLS earlydata
|
||||
|
|
|
|||
|
|
@ -433,9 +433,9 @@ class TestSSLUse:
|
|||
exp_trace = None
|
||||
match_trace = None
|
||||
if env.curl_uses_lib('openssl') or env.curl_uses_lib('quictls'):
|
||||
exp_trace = r'.*SSL certificate problem: certificate has expired$'
|
||||
exp_trace = r'.*SSL certificate OpenSSL verify result: certificate has expired.*$'
|
||||
elif env.curl_uses_lib('gnutls'):
|
||||
exp_trace = r'.*server verification failed: certificate has expired\..*'
|
||||
exp_trace = r'.*SSL certificate verification failed: certificate has expired\..*'
|
||||
elif env.curl_uses_lib('wolfssl'):
|
||||
exp_trace = r'.*server verification failed: certificate has expired\.$'
|
||||
if exp_trace is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue