aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl/cryptography.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-07-06 18:04:55 +0530
committerAlex Gaynor <alex.gaynor@gmail.com>2018-07-06 08:34:55 -0400
commit000fda7e98cf8b0a8c1fb3b480cff0a5a832ca4f (patch)
tree1417f6338a3738de8c285fce283e16169f56a8c3 /src/_cffi_src/openssl/cryptography.py
parentd6256094b26d4563ec9969f2a301dcf671c0f24d (diff)
downloadcryptography-000fda7e98cf8b0a8c1fb3b480cff0a5a832ca4f.tar.gz
cryptography-000fda7e98cf8b0a8c1fb3b480cff0a5a832ca4f.tar.bz2
cryptography-000fda7e98cf8b0a8c1fb3b480cff0a5a832ca4f.zip
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)
Diffstat (limited to 'src/_cffi_src/openssl/cryptography.py')
-rw-r--r--src/_cffi_src/openssl/cryptography.py5
1 files changed, 5 insertions, 0 deletions
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 <openssl/opensslv.h>