aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurens Van Houtven <_@lvh.cc>2014-06-16 17:19:16 +0200
committerLaurens Van Houtven <_@lvh.cc>2014-06-16 17:19:16 +0200
commite1dc70661132426cf01f1ede93b85b89ec48c0c7 (patch)
tree3cb51e4688c70a50335ca09d512dabea0b5525a1
parent6a289c772ac56b5dcf60707c5e3652c014fd7dea (diff)
downloadcryptography-e1dc70661132426cf01f1ede93b85b89ec48c0c7.tar.gz
cryptography-e1dc70661132426cf01f1ede93b85b89ec48c0c7.tar.bz2
cryptography-e1dc70661132426cf01f1ede93b85b89ec48c0c7.zip
Apparently, all of these were in 1.0.0 too
-rw-r--r--cryptography/hazmat/bindings/openssl/err.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/cryptography/hazmat/bindings/openssl/err.py b/cryptography/hazmat/bindings/openssl/err.py
index c0cebe41..f97fd5d1 100644
--- a/cryptography/hazmat/bindings/openssl/err.py
+++ b/cryptography/hazmat/bindings/openssl/err.py
@@ -19,7 +19,7 @@ INCLUDES = """
TYPES = """
static const long Cryptography_HAS_102_ERROR_CODES;
-static const long Cryptography_HAS_101_ERROR_CODES;
+static const long Cryptography_HAS_100_ERROR_CODES;
static const int Cryptography_HAS_REMOVE_THREAD_STATE;
static const int Cryptography_HAS_098H_ERROR_CODES;
static const int Cryptography_HAS_098C_CAMELLIA_CODES;
@@ -359,11 +359,11 @@ static const long X509_V_ERR_EMAIL_MISMATCH = 0;
static const long X509_V_ERR_IP_ADDRESS_MISMATCH = 0;
#endif
-// OpenSSL 1.0.1+
-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
-static const long Cryptography_HAS_101_ERROR_CODES = 1;
+// OpenSSL 1.0.0+
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+static const long Cryptography_HAS_100_ERROR_CODES = 1;
#else
-static const long Cryptography_HAS_101_ERROR_CODES = 0;
+static const long Cryptography_HAS_100_ERROR_CODES = 0;
static const long X509_V_ERR_DIFFERENT_CRL_SCOPE = 0;
static const long X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE = 0;
static const long X509_V_ERR_PERMITTED_VIOLATION = 0;
@@ -375,7 +375,6 @@ static const long X509_V_ERR_UNSUPPORTED_NAME_SYNTAX = 0;
static const long X509_V_ERR_CRL_PATH_VALIDATION_ERROR = 0;
#endif
-// OpenSSL 1.0.0+
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
static const long Cryptography_HAS_REMOVE_THREAD_STATE = 1;
#else
@@ -421,7 +420,7 @@ CONDITIONAL_NAMES = {
'X509_V_ERR_EMAIL_MISMATCH',
'X509_V_ERR_IP_ADDRESS_MISMATCH'
],
- "Cryptography_HAS_101_ERROR_CODES": [
+ "Cryptography_HAS_100_ERROR_CODES": [
'X509_V_ERR_DIFFERENT_CRL_SCOPE',
'X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE',
'X509_V_ERR_UNNESTED_RESOURCE',