]> www.wagner.pp.ru Git - oss/ctypescrypto.git/blob - ctypescrypto/__init__.py
cleaned up documentation
[oss/ctypescrypto.git] / ctypescrypto / __init__.py
1 """
2         Interface to some libcrypto functions
3
4 """
5
6 from ctypes import CDLL,c_char_p
7
8 def config(filename=None):
9         """
10                 Loads OpenSSL Config file. If none are specified, loads default
11                 (compiled in) one
12         """
13         libcrypto.OPENSSL_config(filename)
14
15 libcrypto = CDLL("libcrypto.so.1.0.0")
16 libcrypto.OPENSSL_config.argtypes=(c_char_p,)
17 libcrypto.OPENSSL_add_all_algorithms_conf()