From 000fda7e98cf8b0a8c1fb3b480cff0a5a832ca4f Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 6 Jul 2018 18:04:55 +0530 Subject: set an OPENSSL_API_COMPAT level (#4313) * set an OPENSSL_API_COMPAT level this helps prevent adding deprecated functions and will let us see what we need to/can prune in the distant future when we support only 1.1.0+ * raise the api compat to 1.0.1 (which doesn't matter but is less confusing) --- src/_cffi_src/openssl/cryptography.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/_cffi_src/openssl/cryptography.py b/src/_cffi_src/openssl/cryptography.py index 667fbf46..e3e73580 100644 --- a/src/_cffi_src/openssl/cryptography.py +++ b/src/_cffi_src/openssl/cryptography.py @@ -5,6 +5,11 @@ from __future__ import absolute_import, division, print_function INCLUDES = """ +/* define our OpenSSL API compatibility level to 1.0.1. Any symbols older than + that will raise an error during compilation. We can raise this number again + after we drop 1.0.2 support in the distant future. */ +#define OPENSSL_API_COMPAT 0x10001000L + #include -- cgit v1.2.3