X-Git-Url: https://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=ctypescrypto%2Fengine.py;h=dd7c0281b34a255670d55ab868322128b10a3d93;hb=b4ee51a0aca14c0af5853545b9e524cc1b57b656;hp=f05fcb0a49200e2d65149d9166983e6b024f05ab;hpb=bda9492c89eb38a1aec85220294f6d637ad68724;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/engine.py b/ctypescrypto/engine.py index f05fcb0..dd7c028 100644 --- a/ctypescrypto/engine.py +++ b/ctypescrypto/engine.py @@ -1,9 +1,16 @@ +""" +engine loading and configuration +""" from ctypes import * from ctypescrypto import libcrypto from ctypescrypto.exception import LibCryptoError default=None def set_default(engine): + """ + Loads specified engine and sets it as default for all + algorithms, supported by it + """ global default e=libcrypto.ENGINE_by_id(engine) if e is None: