ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/lib64/python2.7/site-packages/M2Crypto/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/lib64/python2.7/site-packages/M2Crypto/Engine.pyc

�

�1Mc@s�dZddlmZmZmZmZdefd��YZeje�ddd��YZ	d�Z
d�Zd	�Zd
�Z
dS(
sB
M2Crypto wrapper for OpenSSL ENGINE API.

Pavel Shramov
IMEC MSU
i����(tm2tEVPtX509tErrtEngineErrorcBseZRS((t__name__t
__module__(((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pyRstEnginecBs�eZdZejZdddd�Zd�Zd�Z	d�Z
dd�Zd�Zd	�Z
ejd
�Zdd�Zdd�Zdd
�Zd�ZRS(sWrapper for ENGINE object.icCsm|r|rtd��n||_|js`tj|�|_|js`td|��q`n||_dS(s5Create new Engine from ENGINE pointer or obtain by idsNo engine id specifiedsUnknown engine: %sN(t
ValueErrort_ptrRtengine_by_idt_pyfree(tselftidR	R((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pyt__init__s			cCs)t|dd�r%|j|j�ndS(NRi(tgetattrtm2_engine_freeR	(R((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pyt__del__scCstj|j�S(sgObtain a functional reference to the engine.
        
        @return: 0 on error, non-zero on success.(Rtengine_initR	(R((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytinit#scCstj|j�S(s<Release a functional and structural reference to the engine.(Rt
engine_finishR	(R((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytfinish)sicCs4tj|j|||�s0ttj���ndS(sCall ENGINE_ctrl_cmd_stringN(Rtengine_ctrl_cmd_stringR	RRt	get_error(Rtcmdtargtoptional((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytctrl_cmd_string-scCstj|j�S(sReturn engine name(Rtengine_get_nameR	(R((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytget_name2scCstj|j�S(sReturn engine id(Rt
engine_get_idR	(R((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytget_id6scCstj|j|�S(syUse this engine as default for methods specified in argument
        Possible values are bitwise OR of m2.ENGINE_METHOD_*(Rtengine_set_defaultR	(Rtmethods((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytset_default:scCs|tj�}tj|�}zL||j|||�}|sQttj���ntj|dd�}Wdtj	|�X|S(s Helper function for loading keysRiN(
Rt
ui_openssltengine_pkcs11_data_newR	RRRRtPKeytengine_pkcs11_data_free(Rtfunctnametpintuitcbdtkptrtkey((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pyt_engine_load_key?scCs|jtj||�S(srLoad private key with engine methods (e.g from smartcard).
            If pin is not set it will be asked
        (R.Rtengine_load_private_key(RR(R)((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytload_private_keyLscCs|jtj||�S(s9Load public key with engine methods (e.g from smartcard).(R.Rtengine_load_public_key(RR(R)((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytload_public_keyRscCs=tj|j|�}|s*td��ntj|dd�S(spLoad certificate from engine (e.g from smartcard).
        NOTE: This function may be not implemented by engine!sCertificate or card not foundRi(Rtengine_load_certificateR	RR(RR(tcptr((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytload_certificateVsN(RRt__doc__Rtengine_freeRtNoneRRRRRRRtENGINE_METHOD_ALLR"R.R0R2R5(((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pyRs						
cCsZtj�td�}|jd|�|jd|�|jdd�|jdd�|S(s>Load and return dymanic engine from sopath and assign id to ittdynamictSO_PATHtIDtLIST_ADDt1tLOADN(Rtengine_load_dynamicRRR8(R
tsopathte((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytload_dynamic_engine_s
cCstj�dS(sLoad dynamic engineN(RR@(((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytload_dynamicjscCstj�dS(sLoad openssl engineN(Rtengine_load_openssl(((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytload_openssloscCstj�dS(sfIf you load any engines, you need to clean up after your application
    is finished with the engines.N(Rtengine_cleanup(((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pytcleanuptsN((R6tM2CryptoRRRRt	ExceptionRtengine_init_errorRRCRDRFRH(((s5/usr/lib64/python2.7/site-packages/M2Crypto/Engine.pyt<module>s"
P			

Zerion Mini Shell 1.0