Skip to content

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