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

Modernize SSL Security APIs #620

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abeyjose15
Copy link

Changes Made

  • Replace deprecated SecTrustEvaluate with SecTrustEvaluateWithError for iOS 13+
  • Replace deprecated SecTrustCopyPublicKey with SecTrustCopyKey for iOS 14+
  • Replace deprecated SecTrustGetCertificateAtIndex with SecTrustCopyCertificateChain for iOS 15+
  • Add proper error handling and memory management
  • Maintain backward compatibility

Testing

Tested on iOS 15.0+ devices with SSL certificate validation.

Impact

These changes remove deprecation warnings while maintaining security and functionality.

Modernize security APIs for iOS 13+ compatibility
Modernize SSL security APIs for iOS 13+ compatibility

Changes made:
- Replace deprecated SecTrustEvaluate with SecTrustEvaluateWithError for iOS 13+
- Replace deprecated SecTrustCopyPublicKey with SecTrustCopyKey for iOS 14+
- Replace deprecated SecTrustGetCertificateAtIndex with SecTrustCopyCertificateChain for iOS 15+
- Add proper error handling and memory management
- Maintain backward compatibility for older iOS versions

This update removes deprecation warnings while maintaining security and compatibility.
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.

1 participant