mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-26 04:57:52 +00:00
Motivation: The recently-added CA name tests consistently fail on Darwin machines. This is becuase they expect the handshake to fail due to certificate verification errors, but that doesn't happen synchronously on Darwin. This also introduces thread-unsafety into the tests. Neither is good. Modifications: - Modify the test configuration to use custom trust roots, which disables the Security.framework callbacks - Modify the test configuration to disable hostname verification. Result: These tests now successfully perform their handshake on all platforms.