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 @@ -293,6 +293,12 @@ def cryptography_has_bn_flags():
293
293
"BN_prime_checks_for_size" ,
294
294
]
295
295
296
+ def cryptography_has_evp_pkey_dh ():
297
+ return [
298
+ "EVP_PKEY_set1_DH" ,
299
+ ]
300
+
301
+
296
302
# This is a mapping of
297
303
# {condition: function-returning-names-dependent-on-that-condition} so we can
298
304
# loop over them and delete unsupported names at runtime. It will be removed
@@ -349,4 +355,5 @@ def cryptography_has_bn_flags():
349
355
"Cryptography_HAS_SSL_COOKIE" : cryptography_has_ssl_cookie ,
350
356
"Cryptography_HAS_PKCS7_FUNCS" : cryptography_has_pkcs7_funcs ,
351
357
"Cryptography_HAS_BN_FLAGS" : cryptography_has_bn_flags ,
358
+ "Cryptography_HAS_EVP_PKEY_DH" : cryptography_has_evp_pkey_dh ,
352
359
}
You can’t perform that action at this time.
0 commit comments