FreeBSD Bugzilla – Attachment 203915 Details for
Bug 237487
security/py-cryptography: Fails to build with libressl 2.9.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
py-cryptography-libressl291.patch
file_237487.txt (text/plain), 2.29 KB, created by
Maciej Pasternacki
on 2019-04-23 08:44:59 UTC
(
hide
)
Description:
py-cryptography-libressl291.patch
Filename:
MIME Type:
Creator:
Maciej Pasternacki
Created:
2019-04-23 08:44:59 UTC
Size:
2.29 KB
patch
obsolete
>diff --git a/security/py-cryptography/files/patch-src___cffi__src_openssl_cryptography.py b/security/py-cryptography/files/patch-src___cffi__src_openssl_cryptography.py >new file mode 100644 >index 000000000000..f2f530d1a237 >--- /dev/null >+++ b/security/py-cryptography/files/patch-src___cffi__src_openssl_cryptography.py >@@ -0,0 +1,15 @@ >+--- src/_cffi_src/openssl/cryptography.py.orig 2019-02-27 23:27:53 UTC >++++ src/_cffi_src/openssl/cryptography.py >+@@ -38,9 +38,12 @@ INCLUDES = """ >+ (LIBRESSL_VERSION_NUMBER >= 0x2070000f) >+ #define CRYPTOGRAPHY_LIBRESSL_28_OR_GREATER \ >+ (LIBRESSL_VERSION_NUMBER >= 0x2080000f) >++#define CRYPTOGRAPHY_LIBRESSL_291_OR_GREATER \ >++ (LIBRESSL_VERSION_NUMBER >= 0x2090100f) >+ #else >+ #define CRYPTOGRAPHY_LIBRESSL_27_OR_GREATER (0) >+ #define CRYPTOGRAPHY_LIBRESSL_28_OR_GREATER (0) >++#define CRYPTOGRAPHY_LIBRESSL_291_OR_GREATER (0) >+ #endif >+ >+ #define CRYPTOGRAPHY_OPENSSL_102_OR_GREATER \ >diff --git a/security/py-cryptography/files/patch-src___cffi__src_openssl_ssl.py b/security/py-cryptography/files/patch-src___cffi__src_openssl_ssl.py >new file mode 100644 >index 000000000000..15de09805259 >--- /dev/null >+++ b/security/py-cryptography/files/patch-src___cffi__src_openssl_ssl.py >@@ -0,0 +1,26 @@ >+--- src/_cffi_src/openssl/ssl.py.orig 2019-02-27 23:27:53 UTC >++++ src/_cffi_src/openssl/ssl.py >+@@ -719,17 +719,20 @@ static const long TLS_ST_BEFORE = 0; >+ static const long TLS_ST_OK = 0; >+ #endif >+ >+-#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 >++/* LibreSSL 2.9.1 added only the DTLS_*_method functions */ >++#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 && !CRYPTOGRAPHY_LIBRESSL_291_OR_GREATER >+ static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 0; >+ const SSL_METHOD *(*DTLS_method)(void) = NULL; >+ const SSL_METHOD *(*DTLS_server_method)(void) = NULL; >+ const SSL_METHOD *(*DTLS_client_method)(void) = NULL; >++#else >++static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 1; >++#endif >++#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 >+ static const long SSL_OP_NO_DTLSv1 = 0; >+ static const long SSL_OP_NO_DTLSv1_2 = 0; >+ long (*DTLS_set_link_mtu)(SSL *, long) = NULL; >+ long (*DTLS_get_link_min_mtu)(SSL *) = NULL; >+-#else >+-static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 1; >+ #endif >+ >+ static const long Cryptography_HAS_DTLS = 1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 237487
:
203914
| 203915 |
204005