mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:47:28 +03:00
apple sectrust: check correct result on old OS versions
On ancient Apple OS versions where SecTrustEvaluateWithError() is not available, the deprected SecTrustEvaluate() is used. In that code branch, the code checked the wong variable for the verified result. Closes #18929
This commit is contained in:
parent
ca789e09b5
commit
0f02744c41
1 changed files with 2 additions and 2 deletions
|
|
@ -267,8 +267,8 @@ CURLcode Curl_vtls_apple_verify(struct Curl_cfilter *cf,
|
|||
if(status != noErr) {
|
||||
failf(data, "Apple SecTrust verification failed: error %i", (int)status);
|
||||
}
|
||||
else if((status == kSecTrustResultUnspecified) ||
|
||||
(status == kSecTrustResultProceed)) {
|
||||
else if((sec_result == kSecTrustResultUnspecified) ||
|
||||
(sec_result == kSecTrustResultProceed)) {
|
||||
/* "unspecified" means system-trusted with no explicit user setting */
|
||||
result = CURLE_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue