mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:31:41 +03:00
openssl: fix building against no-ocsp openssl with Apple SecTrust
(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 b4630ed8fa #19308
Closes #20128
This commit is contained in:
parent
be675eeb6d
commit
def95e3bbc
1 changed files with 4 additions and 1 deletions
|
|
@ -4746,7 +4746,8 @@ CURLcode Curl_ossl_check_peer_cert(struct Curl_cfilter *cf,
|
|||
long ossl_verify;
|
||||
X509 *server_cert;
|
||||
bool verified = FALSE;
|
||||
#ifdef USE_APPLE_SECTRUST
|
||||
#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_OCSP) && \
|
||||
defined(USE_APPLE_SECTRUST)
|
||||
bool sectrust_verified = FALSE;
|
||||
#endif
|
||||
|
||||
|
|
@ -4801,7 +4802,9 @@ CURLcode Curl_ossl_check_peer_cert(struct Curl_cfilter *cf,
|
|||
if(verified) {
|
||||
infof(data, "SSL certificate verified via Apple SecTrust.");
|
||||
ssl_config->certverifyresult = X509_V_OK;
|
||||
#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_OCSP)
|
||||
sectrust_verified = TRUE;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue