OpenQuizz
Une application de gestion des contenus pédagogiques
urllib3.packages.ssl_match_hostname._implementation Namespace Reference

Data Structures

class  CertificateError
 

Functions

def match_hostname (cert, hostname)
 

Variables

 ipaddress
 

Detailed Description

The match_hostname() function from Python 3.3.3, essential when using SSL.

Function Documentation

◆ match_hostname()

def urllib3.packages.ssl_match_hostname._implementation.match_hostname (   cert,
  hostname 
)
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.

Variable Documentation

◆ ipaddress

ipaddress