-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actually disable hostname validation on Apple platforms when asked (#502
) Motivation: swift-nio-ssl has long had a flag to disable its own certificate validation behaviour. This flag works fine, and had the desired effect. However, this flag did not take account of the fact that Security.framework _also_ validates the hostname. Due to an implementation bug, setting .noHostnameVerification disabled only one of the two checks. Modifications: - Correctly check the flag before passing a hostname to Security.framework - Write some tests to make sure the behaviour works in all modes. Result: Better, more consistent behaviour.
- Loading branch information
Showing
2 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters