diff options
author | Anton <anton.gladkov@gmail.com> | 2016-07-14 03:41:07 +0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2016-07-13 19:41:07 -0400 |
commit | c0f5a8272988c7b93b301d2b3a53cd6f1a350dff (patch) | |
tree | 48f6fc741f327ab46e323b404061d1db1af3af3d /src/_cffi_src | |
parent | 3e3444fa96a3fa911e99e1c12f1a0d859563ce2c (diff) | |
download | cryptography-c0f5a8272988c7b93b301d2b3a53cd6f1a350dff.tar.gz cryptography-c0f5a8272988c7b93b301d2b3a53cd6f1a350dff.tar.bz2 cryptography-c0f5a8272988c7b93b301d2b3a53cd6f1a350dff.zip |
Add OPENSSL_config binding (#2972) (#2974)
>>> lib.EVP_get_digestbyname(b'md_gost94')
<cdata 'EVP_MD *' NULL>
>>> lib.OPENSSL_config(ffi.NULL)
>>> lib.EVP_get_digestbyname(b'md_gost94')
<cdata 'EVP_MD *' 0x10adc7440>
Diffstat (limited to 'src/_cffi_src')
-rw-r--r-- | src/_cffi_src/build_openssl.py | 1 | ||||
-rw-r--r-- | src/_cffi_src/openssl/conf.py | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/_cffi_src/build_openssl.py b/src/_cffi_src/build_openssl.py index 3dcece58..9b186939 100644 --- a/src/_cffi_src/build_openssl.py +++ b/src/_cffi_src/build_openssl.py @@ -50,6 +50,7 @@ ffi = build_ffi_for_binding( "bio", "cmac", "cms", + "conf", "crypto", "dh", "dsa", diff --git a/src/_cffi_src/openssl/conf.py b/src/_cffi_src/openssl/conf.py new file mode 100644 index 00000000..ad67cced --- /dev/null +++ b/src/_cffi_src/openssl/conf.py @@ -0,0 +1,23 @@ +# This file is dual licensed under the terms of the Apache License, Version +# 2.0, and the BSD License. See the LICENSE file in the root of this repository +# for complete details. + +from __future__ import absolute_import, division, print_function + +INCLUDES = """ +#include <openssl/conf.h> +""" + +TYPES = """ +""" + +FUNCTIONS = """ +void OPENSSL_config(const char *); +void OPENSSL_no_config(void); +""" + +MACROS = """ +""" + +CUSTOMIZATIONS = """ +""" |