-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
Starting with Python 3.7, SSLContext uses OpenSSL for hostname matching. Change PyMongo to let SSLContext handle hostname matching when it can, and it supports IP addresses (Python 3.5+). Continue to directly call our backport of match_hostname otherwise.
While we're at it, make sure our backport of match_hostname is completely up to date with the version in CPython 3.7.