OpenQuizz
Une application de gestion des contenus pédagogiques
setuptools.ssl_support Namespace Reference

Data Structures

class  CertificateError
 
class  VerifyingHTTPSConn
 
class  VerifyingHTTPSHandler
 

Functions

def match_hostname (cert, hostname)
 
def opener_for (ca_bundle=None)
 
def once (func)
 
def get_win_certfile ()
 
def find_ca_bundle ()
 

Variables

 ssl
 
 cert_paths
 
 HTTPSHandler
 
 HTTPSConnection
 
 is_available
 
 CertificateError
 
 match_hostname
 

Function Documentation

◆ find_ca_bundle()

def setuptools.ssl_support.find_ca_bundle ( )
Return an existing CA bundle path, or None

◆ get_win_certfile()

def setuptools.ssl_support.get_win_certfile ( )

◆ match_hostname()

def setuptools.ssl_support.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.

◆ once()

def setuptools.ssl_support.once (   func)

◆ opener_for()

def setuptools.ssl_support.opener_for (   ca_bundle = None)
Get a urlopen() replacement that uses ca_bundle for verification

Variable Documentation

◆ cert_paths

cert_paths

◆ CertificateError

◆ HTTPSConnection

HTTPSConnection

◆ HTTPSHandler

HTTPSHandler

◆ is_available

is_available

◆ match_hostname

match_hostname

◆ ssl

ssl