class documentation

class FakeContext:

Constructor: FakeContext(method)

View In Hierarchy

Introspectable fake of an OpenSSL.SSL.Context.

Saves call arguments for later introspection.

Necessary because Context offers poor introspection. cf. this pyOpenSSL bug.

Method __init__ Undocumented
Method add_extra_chain_cert Undocumented
Method check_privatekey Undocumented
Method get_session_cache_mode Retrieve the session cache mode from the context, as per SSL.Context.get_session_cache_mode.
Method load_tmp_dh Undocumented
Method set_cipher_list Undocumented
Method set_default_verify_paths Set the default paths for the platform.
Method set_mode Set the mode. See SSL.Context.set_mode.
Method set_options Undocumented
Method set_session_cache_mode Set the session cache mode on the context, as per SSL.Context.set_session_cache_mode.
Method set_session_id Undocumented
Method set_tmp_ecdh Set an ECDH curve. Should only be called by OpenSSL 1.0.1 code.
Method set_verify Undocumented
Method set_verify_depth Undocumented
Method use_certificate Undocumented
Method use_privatekey Undocumented
Instance Variable _certificate Set by use_certificate.
Instance Variable _cipherList Set by set_cipher_list.
Instance Variable _defaultVerifyPathsSet Set by set_default_verify_paths
Instance Variable _dhFilename Set by load_tmp_dh.
Instance Variable _ecCurve Set by set_tmp_ecdh
Instance Variable _extraCertChain Accumulated list of all extra certificates added by add_extra_chain_cert.
Instance Variable _method See method parameter of __init__.
Instance Variable _mode Set by set_mode.
Instance Variable _options int of ORed values from calls of set_options.
Instance Variable _privateKey Set by use_privatekey.
Instance Variable _sessionCacheMode Undocumented
Instance Variable _sessionID Set by set_session_id.
Instance Variable _sessionIDContext Undocumented
Instance Variable _verify Set by set_verify.
Instance Variable _verifyDepth Set by set_verify_depth.
def __init__(self, method):

Undocumented

def add_extra_chain_cert(self, cert):

Undocumented

def check_privatekey(self):

Undocumented

def get_session_cache_mode(self):

Retrieve the session cache mode from the context, as per SSL.Context.get_session_cache_mode.

def load_tmp_dh(self, dhfilename):

Undocumented

def set_cipher_list(self, cipherList):

Undocumented

def set_default_verify_paths(self):

Set the default paths for the platform.

def set_mode(self, mode):

Set the mode. See SSL.Context.set_mode.

Parameters
modeSee SSL.Context.set_mode.
def set_options(self, options):

Undocumented

def set_session_cache_mode(self, cacheMode):

Set the session cache mode on the context, as per SSL.Context.set_session_cache_mode.

def set_session_id(self, sessionIDContext):

Undocumented

def set_tmp_ecdh(self, curve):

Set an ECDH curve. Should only be called by OpenSSL 1.0.1 code.

Parameters
curveSee OpenSSL.SSL.Context.set_tmp_ecdh
def set_verify(self, flags, callback=None):

Undocumented

def set_verify_depth(self, depth):

Undocumented

def use_certificate(self, certificate):

Undocumented

def use_privatekey(self, privateKey):

Undocumented

_certificate =
_cipherList =
_defaultVerifyPathsSet: bool =
_dhFilename =

Set by load_tmp_dh.

_ecCurve =
_extraCertChain: list =

Accumulated list of all extra certificates added by add_extra_chain_cert.

_method =

See method parameter of __init__.

_mode =

Set by set_mode.

_options: int =

int of ORed values from calls of set_options.

_privateKey =
_sessionCacheMode =

Undocumented

_sessionID =
_sessionIDContext =

Undocumented

_verify =

Set by set_verify.

_verifyDepth =