Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecTrustEvaluate is deprecated #85

Open
guillaumerose opened this issue Nov 27, 2020 · 1 comment
Open

SecTrustEvaluate is deprecated #85

guillaumerose opened this issue Nov 27, 2020 · 1 comment

Comments

@guillaumerose
Copy link

When compiling on macOS 10.15.6 with xcode 12.0.1:

cgo-gcc-prolog:473:11: warning: 'SecTrustEvaluate' is deprecated: first deprecated in macOS 10.15 [-Wdeprecated-declarations]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrust.h:353:10: note: 'SecTrustEvaluate' has been explicitly marked deprecated here

According to the doc, SecTrustEvaluateWithError should be used.
https://developer.apple.com/documentation/security/2980705-sectrustevaluatewitherror

@guillaumerose
Copy link
Author

guillaumerose commented Nov 27, 2020

I tried to change the method to the new one but tests fail after that. It seems that the status code was always ok and since the status was not used/checked, it didn't work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants