Package M2Crypto :: Module Engine :: Class Engine
[frames] | no frames]

Class Engine



Wrapper for ENGINE object.

Instance Methods
 
m2_engine_free(...)
 
__init__(self, id=None, _ptr=None, _pyfree=1)
Create new Engine from ENGINE pointer or obtain by id
 
__del__(self)
 
ctrl_cmd_string(self, cmd, arg, optional=0)
Call ENGINE_ctrl_cmd_string
 
get_name(self)
Return engine name
 
get_id(self)
Return engine id
 
set_default(self, methods=65535)
Use this engine as default for methods specified in argument Possible values are bitwise OR of m2.ENGINE_METHOD_*
 
load_private_key(self, name, pin=None)
Load private key with engine methods (e.g from smartcard).
 
load_public_key(self, name, pin=None)
Load public key with engine methods (e.g from smartcard).
 
load_certificate(self, name)
Load certificate from engine (e.g from smartcard).
Method Details

load_private_key(self, name, pin=None)

 

Load private key with engine methods (e.g from smartcard). If pin is not set it will be asked

load_certificate(self, name)

 

Load certificate from engine (e.g from smartcard). NOTE: This function may be not implemented by engine!