openbsd-ports/security/py-cryptography/patches/patch-src__cffi_src_openssl_crypto_py

15 lines
396 B
Plaintext

LibreSSL 3.6 and later has OPENSSL_cleanup()
Index: src/_cffi_src/openssl/crypto.py
--- src/_cffi_src/openssl/crypto.py.orig
+++ src/_cffi_src/openssl/crypto.py
@@ -75,7 +75,7 @@ CUSTOMIZATIONS = """
# define OPENSSL_DIR SSLEAY_DIR
#endif
-#if CRYPTOGRAPHY_IS_LIBRESSL
+#if 0
static const long Cryptography_HAS_OPENSSL_CLEANUP = 0;
void (*OPENSSL_cleanup)(void) = NULL;
#else