class documentation

class FakeContext: (source)

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): (source)

Undocumented

def add_extra_chain_cert(self, cert): (source)

Undocumented

def check_privatekey(self): (source)

Undocumented

def get_session_cache_mode(self): (source)

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

def load_tmp_dh(self, dhfilename): (source)

Undocumented

def set_cipher_list(self, cipherList): (source)

Undocumented

def set_default_verify_paths(self): (source)

Set the default paths for the platform.

def set_mode(self, mode): (source)

Set the mode. See SSL.Context.set_mode.

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

Undocumented

def set_session_cache_mode(self, cacheMode): (source)

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

def set_session_id(self, sessionIDContext): (source)

Undocumented

def set_tmp_ecdh(self, curve): (source)

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): (source)

Undocumented

def set_verify_depth(self, depth): (source)

Undocumented

def use_certificate(self, certificate): (source)

Undocumented

def use_privatekey(self, privateKey): (source)

Undocumented

_certificate = (source)
_defaultVerifyPathsSet: bool = (source)
_dhFilename = (source)

Set by load_tmp_dh.

_extraCertChain: list = (source)

Accumulated list of all extra certificates added by add_extra_chain_cert.

See method parameter of __init__.

_options: int = (source)

int of ORed values from calls of set_options.

_privateKey = (source)
_sessionCacheMode = (source)

Undocumented

_sessionIDContext = (source)

Undocumented