From c0f5a8272988c7b93b301d2b3a53cd6f1a350dff Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 14 Jul 2016 03:41:07 +0400 Subject: Add OPENSSL_config binding (#2972) (#2974) >>> lib.EVP_get_digestbyname(b'md_gost94') >>> lib.OPENSSL_config(ffi.NULL) >>> lib.EVP_get_digestbyname(b'md_gost94') --- src/_cffi_src/build_openssl.py | 1 + src/_cffi_src/openssl/conf.py | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/_cffi_src/openssl/conf.py (limited to 'src/_cffi_src') 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 +""" + +TYPES = """ +""" + +FUNCTIONS = """ +void OPENSSL_config(const char *); +void OPENSSL_no_config(void); +""" + +MACROS = """ +""" + +CUSTOMIZATIONS = """ +""" -- cgit v1.2.3