mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-26 04:57:52 +00:00
Motivation: The hostname verification code operated on unsafe buffer pointers without any clear justification for doing so. While it may have been necessary to do that once, it certainly isn't necessary now. Modifications: Rewrite all the code to operate on Array. Throw a more meaningful error. Result: Bounds checking, better safety.