Skip to content

Commit a1bd27f

Browse files
waqqasdjarek
andauthored
Fix: Deprecation warning on mac 10.15 (Catalina) (djarek#64)
* Fix: Deprecation warning on mac 10.15 (Catalina) for function SecTrustEvaluate * Changed nil to nullptr Co-authored-by: Damian Jarek <damian.jarek93@gmail.com>
1 parent bb7b58c commit a1bd27f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

include/boost/certify/detail/keystore_apple.ipp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,7 @@ verify_certificate_chain(::X509_STORE_CTX* ctx)
117117
if (status != noErr)
118118
return false;
119119

120-
SecTrustResultType result;
121-
status = SecTrustEvaluate(trust.get(), &result);
122-
if (status == noErr && (result == kSecTrustResultUnspecified ||
123-
result == kSecTrustResultProceed))
124-
return true;
125-
else
126-
return false;
120+
return SecTrustEvaluateWithError(trust.get(), nullptr);
127121
}
128122

129123
} // namespace detail

0 commit comments

Comments
 (0)