FreeBSD Bugzilla – Attachment 224270 Details for
Bug 255241
security/py-cryptography: Fix build with LibreSSL 3.3.2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1
0001-security-py-cryptography-fix-build-with-LibreSSL-3.3.patch (text/plain), 2.64 KB, created by
Charlie Li
on 2021-04-20 00:28:16 UTC
(
hide
)
Description:
v1
Filename:
MIME Type:
Creator:
Charlie Li
Created:
2021-04-20 00:28:16 UTC
Size:
2.64 KB
patch
obsolete
>From a53c328ac558fee901aae92a7e5f9d1d13b41de8 Mon Sep 17 00:00:00 2001 >From: Charlie Li <git@vishwin.info> >Date: Mon, 19 Apr 2021 19:30:08 -0400 >Subject: [PATCH] security/py-cryptography: fix build with LibreSSL 3.3.2 > >Merged upstream as pyca/cryptography#5988 >--- > .../patch-Fix-build-with-LibreSSL-3.3.2-5988 | 62 +++++++++++++++++++ > 1 file changed, 62 insertions(+) > create mode 100644 security/py-cryptography/files/patch-Fix-build-with-LibreSSL-3.3.2-5988 > >diff --git security/py-cryptography/files/patch-Fix-build-with-LibreSSL-3.3.2-5988 security/py-cryptography/files/patch-Fix-build-with-LibreSSL-3.3.2-5988 >new file mode 100644 >index 000000000000..deb9c6408832 >--- /dev/null >+++ security/py-cryptography/files/patch-Fix-build-with-LibreSSL-3.3.2-5988 >@@ -0,0 +1,62 @@ >+From 94590a9aecc9e5ef6fc8eda52bae43643a4c44bd Mon Sep 17 00:00:00 2001 >+From: Charlie Li <vishwin@users.noreply.github.com> >+Date: Mon, 19 Apr 2021 18:38:38 -0400 >+Subject: [PATCH] Fix build with LibreSSL 3.3.2 (#5988) >+ >+* LibreSSL 3.3.2 supports SSL_OP_NO_DTLS* >+ >+While here, bump CI >+ >+* Fix preprocessor guards for LibreSSL's SSL_OP_NO_DTLS* >+ >+DTLS_set_link_mtu and DTLS_get_link_min_mtu are not part of 3.3.2 >+ >+* Switch to LESS_THAN context for LibreSSL 3.3.2 >+ >+While here, fix indents >+ >+* Remove extra C variable declaration >+ >+The variable is not actually used from Python >+--- >+ .github/workflows/ci.yml | 2 +- >+ src/_cffi_src/openssl/cryptography.py | 7 +++++++ >+ src/_cffi_src/openssl/ssl.py | 2 ++ >+ 3 files changed, 10 insertions(+), 1 deletion(-) >+ >+diff --git src/_cffi_src/openssl/cryptography.py src/_cffi_src/openssl/cryptography.py >+index e2b5a132..b9c7a793 100644 >+--- src/_cffi_src/openssl/cryptography.py >++++ src/_cffi_src/openssl/cryptography.py >+@@ -32,6 +32,13 @@ INCLUDES = """ >+ #include <Winsock2.h> >+ #endif >+ >++#if CRYPTOGRAPHY_IS_LIBRESSL >++#define CRYPTOGRAPHY_LIBRESSL_LESS_THAN_332 \ >++ (LIBRESSL_VERSION_NUMBER < 0x3030200f) >++#else >++#define CRYPTOGRAPHY_LIBRESSL_LESS_THAN_332 (0) >++#endif >++ >+ #define CRYPTOGRAPHY_OPENSSL_110F_OR_GREATER \ >+ (OPENSSL_VERSION_NUMBER >= 0x1010006f && !CRYPTOGRAPHY_IS_LIBRESSL) >+ >+diff --git src/_cffi_src/openssl/ssl.py src/_cffi_src/openssl/ssl.py >+index 11a7d63a..081ef041 100644 >+--- src/_cffi_src/openssl/ssl.py >++++ src/_cffi_src/openssl/ssl.py >+@@ -586,8 +586,10 @@ static const long TLS_ST_OK = 0; >+ #endif >+ >+ #if CRYPTOGRAPHY_IS_LIBRESSL >++#if CRYPTOGRAPHY_LIBRESSL_LESS_THAN_332 >+ static const long SSL_OP_NO_DTLSv1 = 0; >+ static const long SSL_OP_NO_DTLSv1_2 = 0; >++#endif >+ long (*DTLS_set_link_mtu)(SSL *, long) = NULL; >+ long (*DTLS_get_link_min_mtu)(SSL *) = NULL; >+ #endif >+-- >+2.31.1 >+ >-- >2.31.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
Flags:
koobs
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 255241
: 224270