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
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;
}