You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CBL-7351: Return error for AnchorTrusted in CBLCheckTrust (#3434)
* MultipeerReplicatorTest.testAuthenticateWithRootCertsFailed failed when running on iOS Device. Not sure why I didn’t catch this bug before. The test passed when running on macOS.
* The cause of the issue is in CBLTrustCheck that doesn’t return an error when AnchorTrusted problem is found — it doesn’t return NO. When calling CBLTrustCheck on macOS, it failed when validating trust but for iOS, the validation error is a recoverable error so it needs additional checks.
* In addition, refactor CBLTrustCheck logic to only skip host check when host is not specified.
* Add some comment in CBLWebSocket and simplfy the code when calling trust check.
* Update TrustCheckTest and clean up MultipeerReplicatorTest.
* Note: Perform manual replication test with app service to ensure that any changes in CBLTrustCheck and CBLWebSocket are still working with the normal wss:// server.
0 commit comments