module documentation
The match_hostname() function from Python 3.3.3, essential when using SSL.
Exception |
|
Undocumented |
Function | match |
Verify that *cert* (in decoded format as returned by SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125 rules are followed, but IP addresses are not accepted for *hostname*. |
Variable | __version__ |
Undocumented |
Function | _dnsname |
Matching according to RFC 6125, section 6.4.3 |
Function | _ipaddress |
Exact matching of IP addresses. |
Function | _to |
Undocumented |
Verify that *cert* (in decoded format as returned by SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125 rules are followed, but IP addresses are not accepted for *hostname*. CertificateError is raised on failure. On success, the function returns nothing.