Skip to content

sectrust: fix verifystatus via sectrust - #19308

Closed
icing wants to merge 1 commit into
curl:masterfrom
icing:sectrust-verifystatus
Closed

icing wants to merge 1 commit into
curl:masterfrom
icing:sectrust-verifystatus

Conversation

@icing

@icing icing commented Oct 31, 2025

Copy link
Copy Markdown
Contributor

When openssl does not verify the certificate, but apple sectrust does, we also pass it the ocsp stapled response when configured and available.

When openssl does not verify the cert chain, it will also not be able to verify the ocsp stapling. Do not call it if sectrust is the verifier of the cert chain.

refs #19307

When openssl does not verify the certificate, but apple sectrust
does, we also pass it the ocsp stapled response when configured and
available.

When openssl does not verify the cert chain, it will also not be able
to verify the ocsp stapling. Do not call it if sectrust is the
verifier of the cert chain.

refs curl#19307
@bagder bagder closed this in b4630ed Oct 31, 2025
bagder pushed a commit that referenced this pull request Nov 8, 2025
A regression in curl 8.17.0 led to a customer CAPATH set by the
application (or the curl command) to be ignored unless licurl was built
with a default CAPATH.

Add test cases using `--capath` on the custom pytest CA, generated with
the help of the openssl command when available.

Fixes #19401
Reported-by: Brad King
Closes #19308
vszakats added a commit that referenced this pull request Dec 31, 2025
(Not tested in CI. Regression in 8.17.0.)

Fixing:
```
lib/vtls/openssl.c:4750:8: error: variable 'sectrust_verified' set but not used [-Werror,-Wunused-but-set-variable]
 4750 |   bool sectrust_verified = FALSE;
      |        ^
1 error generated.
```

Follow-up to b4630ed #19308

Closes #20128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appleOS specific to an Apple operating system TLS

Development

Successfully merging this pull request may close these issues.

2 participants