Skip to content

bpo-32819: Simplify and improve ssl.match_hostname - #5620

Merged
tiran merged 1 commit into
python:masterfrom
tiran:bpo-32819-match-hostname
Feb 24, 2018
Merged

tiran merged 1 commit into
python:masterfrom
tiran:bpo-32819-match-hostname

Conversation

@tiran

@tiran tiran commented Feb 11, 2018 •

Copy link
Copy Markdown
Member

ssl.match_hostname() has been simplified and no longer depends on re and
ipaddress module for wildcard and IP addresses. Error reporting for invalid
wildcards has been improved.

Signed-off-by: Christian Heimes christian@python.org

https://bugs.python.org/issue32819

@tiran tiran added type-bug An unexpected behavior, bug, or error type-security A security issue needs backport to 3.7 labels Feb 11, 2018
@tiran
tiran requested review from alex and pitrou February 11, 2018 14:58
@tiran
tiran force-pushed the bpo-32819-match-hostname branch 2 times, most recently from fcac61c to 9b87c22 Compare February 11, 2018 16:29

@asvetlov asvetlov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the change

Comment thread Lib/ssl.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/withs/with/

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except one minor nit.

ssl.match_hostname() has been simplified and no longer depends on re and
ipaddress module for wildcard and IP addresses. Error reporting for invalid
wildcards has been improved.

Signed-off-by: Christian Heimes <christian@python.org>
@tiran
tiran force-pushed the bpo-32819-match-hostname branch from 9b87c22 to dfeabcc Compare February 22, 2018 16:03
@tiran

tiran commented Feb 22, 2018

Copy link
Copy Markdown
Member Author

Thanks @pitrou !

I have fixed the typo and rebased the PR.

@tiran
tiran merged commit aef1283 into python:master Feb 24, 2018
@bedevere-bot

Copy link
Copy Markdown

@tiran: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@tiran
tiran deleted the bpo-32819-match-hostname branch February 24, 2018 13:36
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 24, 2018
ssl.match_hostname() has been simplified and no longer depends on re and
ipaddress module for wildcard and IP addresses. Error reporting for invalid
wildcards has been improved.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit aef1283)

Co-authored-by: Christian Heimes <christian@python.org>
@bedevere-bot

Copy link
Copy Markdown

GH-5847 is a backport of this pull request to the 3.7 branch.

tiran added a commit that referenced this pull request Feb 24, 2018
…5847)

ssl.match_hostname() has been simplified and no longer depends on re and
ipaddress module for wildcard and IP addresses. Error reporting for invalid
wildcards has been improved.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit aef1283)

Co-authored-by: Christian Heimes <christian@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants