Module Expr Str Import alias Import alias Import alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Str Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Return NameLoad decorator_list
N/A N/A Extends BaseHTTPRequestHandler with SSL certificate generation. N/A logging N/A socket N/A certutils _SetUpUsingDummyCert N/A N/A handler N/A N/A N/A Sets up connection providing the certificate to the client.

  This method handles Server Name Indication (SNI) using dummy certs.

  Args:
    handler: an instance of BaseHTTPServer.BaseHTTPRequestHandler that is used
      by some instance of  BaseHTTPServer.HTTPServer.
   N/A context N/A N/A certutils get_ssl_context handle_servername N/A N/A connection N/A N/A N/A A SNI callback that happens during do_handshake(). N/A N/A N/A host N/A N/A connection get_servername N/A host N/A N/A cert_str N/A N/A N/A handler server get_certificate host N/A new_context N/A N/A certutils get_ssl_context N/A cert N/A N/A certutils load_cert cert_str N/A N/A N/A new_context use_certificate cert N/A N/A N/A new_context use_privatekey_file N/A N/A handler server ca_cert_path N/A N/A N/A connection set_context new_context N/A new_context N/A N/A N/A Exception N/A e N/A N/A N/A N/A logging error Exception in SNI handler: %s e N/A N/A N/A N/A context set_tlsext_servername_callback handle_servername N/A N/A handler connection N/A N/A certutils get_ssl_connection context N/A handler connection N/A N/A N/A N/A handler connection set_accept_state N/A N/A N/A N/A N/A N/A handler connection do_handshake N/A N/A N/A N/A certutils Error N/A v N/A N/A host N/A N/A N/A handler connection get_servername N/A N/A host N/A N/A N/A N/A logging error Dropping request without SNI N/A N/A N/A N/A certutils Error N/A SSL handshake error %s: %s N/A host N/A str v N/A N/A handler rfile N/A N/A socket _fileobject N/A handler connection rb N/A handler rbufsize close False N/A N/A handler wfile N/A N/A socket _fileobject N/A handler connection wb N/A handler wbufsize close False N/A wrap_handler N/A N/A handler_class N/A N/A N/A Wraps a BaseHTTPHandler with SSL MITM certificates. N/A N/A certutils openssl_import_error N/A N/A N/A certutils openssl_import_error WrappedHandler N/A handler_class N/A setup N/A N/A self N/A N/A N/A N/A N/A handler_class setup self N/A N/A _SetUpUsingDummyCert self N/A finish N/A N/A self N/A N/A N/A N/A N/A handler_class finish self N/A N/A N/A N/A self connection shutdown N/A N/A N/A N/A self connection close N/A N/A N/A WrappedHandler N/A