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

Fix 2020 and 2021 Deprecation Warnings #3555

Merged
merged 5 commits into from
Feb 1, 2022
Merged

Conversation

jshier
Copy link
Contributor

@jshier jshier commented Feb 1, 2022

Issue Link πŸ”—

Fixes #3554

Goals ⚽

This PR fixes a few deprecations warnings from the last couple years for those forcing Alamofire to build with a higher deployment target than normal.

Implementation Details 🚧

  • SecTrustGetCertificateAtIndex has been replaced by SecTrustCopyCertificateChain. This replacement is thread safe, returning all certificates at once.
  • SecTrustCopyPublicKey has been replaced by SecTrustCopyKey. This replacement limits keys to RSA and ECDSA signature types.
  • Gross CoreFoundation type identifiers API has been replaced by the UniformTypeIdentifiers framework.

Testing Details πŸ”

No additional tests, existing suite should catch regressions.

@jshier jshier merged commit 4e11036 into master Feb 1, 2022
@jshier jshier deleted the update/deprecation-warnings branch February 1, 2022 22:18
@jshier jshier added this to the 5.6.0 milestone Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'SecTrustCopyPublicKey deprecated' compile warning
1 participant