]> wagner.pp.ru Git - oss/ctypescrypto.git/blobdiff - ctypescrypto/engine.py
I've discovered Python's __all__ variable and make use of it in all modles
[oss/ctypescrypto.git] / ctypescrypto / engine.py
index f05fcb0a49200e2d65149d9166983e6b024f05ab..898b20dc4c0268f687a443373dc569e5fe06ec5c 100644 (file)
@@ -1,9 +1,19 @@
+"""
+engine loading and configuration
+"""
 from ctypes import *
 from ctypescrypto import libcrypto
 from ctypescrypto.exception import LibCryptoError
+
+__all__=['default','set_default']
+
 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: