File tree 2 files changed +15
-0
lines changed
cryptography/hazmat/bindings/openssl
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 37
37
static const long Cryptography_HAS_RAW_KEY;
38
38
static const long Cryptography_HAS_EVP_DIGESTFINAL_XOF;
39
39
static const long Cryptography_HAS_300_FIPS;
40
+ static const long Cryptography_HAS_EVP_PKEY_DH;
40
41
"""
41
42
42
43
FUNCTIONS = """
280
281
int (*EVP_default_properties_is_fips_enabled)(OSSL_LIB_CTX *) = NULL;
281
282
int (*EVP_default_properties_enable_fips)(OSSL_LIB_CTX *, int) = NULL;
282
283
#endif
284
+
285
+ #if CRYPTOGRAPHY_IS_BORINGSSL
286
+ static const long Cryptography_HAS_EVP_PKEY_DH = 0;
287
+ int (*EVP_PKEY_set1_DH)(EVP_PKEY *, DH *) = NULL;
288
+ #else
289
+ static const long Cryptography_HAS_EVP_PKEY_DH = 1;
290
+ #endif
283
291
"""
Original file line number Diff line number Diff line change @@ -288,6 +288,12 @@ def cryptography_has_bn_flags():
288
288
]
289
289
290
290
291
+ def cryptography_has_evp_pkey_dh ():
292
+ return [
293
+ "EVP_PKEY_set1_DH" ,
294
+ ]
295
+
296
+
291
297
# This is a mapping of
292
298
# {condition: function-returning-names-dependent-on-that-condition} so we can
293
299
# loop over them and delete unsupported names at runtime. It will be removed
@@ -343,4 +349,5 @@ def cryptography_has_bn_flags():
343
349
"Cryptography_HAS_SSL_COOKIE" : cryptography_has_ssl_cookie ,
344
350
"Cryptography_HAS_PKCS7_FUNCS" : cryptography_has_pkcs7_funcs ,
345
351
"Cryptography_HAS_BN_FLAGS" : cryptography_has_bn_flags ,
352
+ "Cryptography_HAS_EVP_PKEY_DH" : cryptography_has_evp_pkey_dh ,
346
353
}
You can’t perform that action at this time.
0 commit comments