Module Expr Str Import alias Import alias Import alias ImportFrom alias TryExcept body ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ExceptHandler type AttributeLoad NameLoad attr name NameStore body If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr TupleLoad Num Str body Return Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If BoolOpAnd NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Return Str Raise Call AttributeLoad NameLoad attr NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr TupleLoad Num Str body Return Str Assign NameStore NameLoad TryExcept body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Index Num handlers ExceptHandler type NameLoad body Pass If CompareEq NameLoad Str body Raise Call AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ExceptHandler body Raise If CompareGt BinOpSub Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore ListLoad Assign NameStore AttributeLoad Call NameLoad NameLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults vararg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list For NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str body Exec BinOpMod Str TupleLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Return Call AttributeLoad AttributeLoad NameLoad attr attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr Str attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore ListLoad TupleLoad Str Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call NameLoad NameLoad Slice Num Num Assign NameStore BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num If BoolOpAnd NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Num body If BoolOpAnd NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A A library for integrating pyOpenSSL with CherryPy.

The OpenSSL module must be importable for SSL functionality.
You can obtain it from http://pyopenssl.sourceforge.net/

To use this module, set CherryPyWSGIServer.ssl_adapter to an instance of
SSLAdapter. There are two ways to use SSL:

Method One
----------

 * ``ssl_adapter.context``: an instance of SSL.Context.

If this is not None, it is assumed to be an SSL.Context instance,
and will be passed to SSL.Connection on bind(). The developer is
responsible for forming a valid Context object. This approach is
to be preferred for more flexibility, e.g. if the cert and key are
streams instead of files, or need decryption, or SSL.SSLv3_METHOD
is desired instead of the default SSL.SSLv23_METHOD, etc. Consult
the pyOpenSSL documentation for complete options.

Method Two (shortcut)
---------------------

 * ``ssl_adapter.certificate``: the filename of the server SSL certificate.
 * ``ssl_adapter.private_key``: the filename of the server's private key file.

Both are None by default. If ssl_adapter.context is None, but .private_key
and .certificate are both given and valid, they will be read, and the
context will be automatically created from them.
 N/A socket N/A threading N/A time cherrypy wsgiserver N/A N/A OpenSSL SSL OpenSSL crypto N/A N/A N/A ImportError N/A N/A SSL None SSL_fileobject N/A N/A wsgiserver CP_fileobject N/A N/A SSL file object attached to a socket object. N/A ssl_timeout 3 N/A ssl_retry 0.01 _safe_call N/A N/A self is_reader call N/A args kwargs N/A N/A Wrap the given call with SSL error-trapping.
        
        is_reader: if False EOF errors will be raised. If True, EOF errors
        will return "" (to emulate normal sockets).
         N/A start N/A N/A time time N/A True N/A N/A N/A N/A N/A call args kwargs N/A N/A N/A N/A SSL WantReadError N/A N/A N/A N/A time sleep N/A self ssl_retry N/A N/A N/A SSL WantWriteError N/A N/A N/A N/A time sleep N/A self ssl_retry N/A N/A N/A SSL SysCallError N/A e N/A N/A N/A is_reader N/A N/A e args N/A -1 Unexpected EOF N/A N/A N/A errnum N/A N/A e args N/A 0 N/A N/A is_reader N/A errnum N/A wsgiserver socket_errors_to_ignore N/A N/A N/A N/A N/A socket error errnum N/A N/A N/A SSL Error N/A e N/A N/A N/A is_reader N/A N/A e args N/A -1 Unexpected EOF N/A N/A N/A thirdarg None N/A N/A N/A thirdarg N/A N/A N/A N/A e args N/A 0 N/A 0 N/A 2 N/A N/A N/A IndexError N/A N/A N/A N/A thirdarg http request N/A N/A N/A N/A wsgiserver NoSSLError N/A N/A N/A wsgiserver FatalSSLAlert N/A e args N/A N/A N/A N/A N/A N/A N/A N/A time time start N/A self ssl_timeout N/A N/A N/A N/A socket timeout timed out N/A recv N/A N/A self N/A args kwargs N/A N/A buf N/A N/A r N/A N/A super SSL_fileobject self recv N/A True N/A N/A data N/A N/A self _safe_call True r args kwargs N/A N/A N/A buf append data N/A p N/A N/A N/A self _sock pending N/A N/A p N/A N/A N/A N/A join buf N/A sendall N/A N/A self N/A args kwargs N/A N/A N/A N/A self _safe_call False N/A N/A super SSL_fileobject self sendall args kwargs N/A send N/A N/A self N/A args kwargs N/A N/A N/A N/A self _safe_call False N/A N/A super SSL_fileobject self send args kwargs N/A N/A SSLConnection N/A N/A N/A A thread-safe wrapper for an SSL.Connection.
    
    ``*args``: the arguments to create the wrapped ``SSL.Connection(*args)``.
     __init__ N/A N/A self N/A args N/A N/A N/A self _ssl_conn N/A N/A SSL Connection args N/A N/A self _lock N/A N/A threading RLock N/A N/A f N/A get_context pending send write recv read renegotiate bind listen connect accept setblocking fileno close get_cipher_list getpeername getsockname getsockopt setsockopt makefile get_app_data set_app_data state_string sock_shutdown get_peer_certificate want_read want_write set_connect_state set_accept_state connect_ex sendall settimeout gettimeout N/A N/A N/A def %s(self, *args):
        self._lock.acquire()
        try:
            return self._ssl_conn.%s(*args)
        finally:
            self._lock.release()
 N/A f f shutdown N/A N/A self N/A args N/A N/A N/A N/A N/A self _lock acquire N/A N/A N/A N/A N/A N/A self _ssl_conn shutdown N/A N/A N/A N/A N/A self _lock release N/A N/A pyOpenSSLAdapter N/A N/A wsgiserver SSLAdapter N/A N/A A wrapper for integrating pyOpenSSL with CherryPy. N/A context None N/A An instance of SSL.Context. N/A certificate None N/A The filename of the server SSL certificate. N/A private_key None N/A The filename of the server's private key file. N/A certificate_chain None N/A Optional. The filename of CA's intermediate certificate bundle.
    
    This is needed for cheaper "chained root" SSL certificates, and should be
    left as None if not required. __init__ N/A N/A self certificate private_key certificate_chain N/A None N/A N/A N/A SSL None N/A N/A N/A ImportError You must install pyOpenSSL to use HTTPS. N/A N/A self context None N/A N/A self certificate certificate N/A N/A self private_key private_key N/A N/A self certificate_chain certificate_chain N/A N/A self _environ None N/A bind N/A N/A self sock N/A N/A N/A Wrap and return the given socket. N/A N/A N/A self context None N/A N/A N/A self context N/A N/A self get_context N/A conn N/A SSLConnection N/A self context sock N/A N/A self _environ N/A N/A self get_environ N/A conn N/A wrap N/A N/A self sock N/A N/A N/A Wrap and return the given socket, plus WSGI environ entries. N/A N/A sock N/A N/A N/A self _environ copy N/A get_context N/A N/A self N/A N/A N/A Return an SSL.Context from self attributes. N/A c N/A N/A SSL Context N/A SSL SSLv23_METHOD N/A N/A N/A c use_privatekey_file N/A self private_key N/A N/A self certificate_chain N/A N/A N/A N/A c load_verify_locations N/A self certificate_chain N/A N/A N/A c use_certificate_file N/A self certificate N/A c N/A get_environ N/A N/A self N/A N/A N/A Return WSGI environ entries to be merged into each request. N/A ssl_environ N/A HTTPS on N/A N/A self certificate N/A N/A cert N/A N/A N/A open N/A self certificate rb read N/A cert N/A N/A crypto load_certificate N/A crypto FILETYPE_PEM cert N/A N/A N/A ssl_environ update N/A SSL_SERVER_M_VERSION SSL_SERVER_M_SERIAL N/A N/A cert get_version N/A N/A cert get_serial_number N/A N/A prefix dn N/A N/A I N/A N/A cert get_issuer N/A S N/A N/A cert get_subject N/A N/A dnstr N/A N/A str dn N/A 18 -2 N/A wsgikey N/A SSL_SERVER_%s_DN prefix N/A N/A ssl_environ N/A wsgikey dnstr N/A dnstr N/A N/A pos N/A N/A dnstr rfind = N/A N/A dnstr value N/A N/A dnstr N/A pos N/A dnstr N/A N/A pos 1 N/A pos N/A N/A dnstr rfind / N/A N/A dnstr key N/A N/A dnstr N/A pos N/A dnstr N/A N/A pos 1 N/A N/A key value N/A N/A wsgikey N/A SSL_SERVER_%s_DN_%s N/A prefix key N/A N/A ssl_environ N/A wsgikey value N/A ssl_environ N/A makefile N/A N/A self sock mode bufsize N/A r -1 N/A N/A N/A SSL N/A isinstance sock N/A SSL ConnectionType N/A N/A timeout N/A N/A sock gettimeout N/A f N/A SSL_fileobject sock mode bufsize N/A N/A f ssl_timeout timeout N/A f N/A N/A N/A N/A wsgiserver CP_fileobject sock mode bufsize N/A N/A