aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl/conf.py
diff options
context:
space:
mode:
authorAnton <anton.gladkov@gmail.com>2016-07-14 03:41:07 +0400
committerAlex Gaynor <alex.gaynor@gmail.com>2016-07-13 19:41:07 -0400
commitc0f5a8272988c7b93b301d2b3a53cd6f1a350dff (patch)
tree48f6fc741f327ab46e323b404061d1db1af3af3d /src/_cffi_src/openssl/conf.py
parent3e3444fa96a3fa911e99e1c12f1a0d859563ce2c (diff)
downloadcryptography-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/openssl/conf.py')
-rw-r--r--src/_cffi_src/openssl/conf.py23
1 files changed, 23 insertions, 0 deletions
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 = """
+"""