diff --git a/srcpkgs/python-cryptography/patches/libressl.patch b/srcpkgs/python-cryptography/patches/libressl.patch new file mode 100644 index 0000000000..38ee9bce61 --- /dev/null +++ b/srcpkgs/python-cryptography/patches/libressl.patch @@ -0,0 +1,18 @@ +$OpenBSD: patch-src__cffi_src_openssl_ssl_py,v 1.2 2019/04/19 10:18:16 sthen Exp $ + +Index: src/_cffi_src/openssl/ssl.py +--- src/_cffi_src/openssl/ssl.py.orig ++++ src/_cffi_src/openssl/ssl.py +@@ -721,9 +721,11 @@ static const long TLS_ST_OK = 0; + + #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 + static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 0; ++#if !CRYPTOGRAPHY_IS_LIBRESSL + const SSL_METHOD *(*DTLS_method)(void) = NULL; + const SSL_METHOD *(*DTLS_server_method)(void) = NULL; + const SSL_METHOD *(*DTLS_client_method)(void) = NULL; ++#endif + 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; + diff --git a/srcpkgs/python-cryptography/template b/srcpkgs/python-cryptography/template index 3aef3cb91e..a7838a514d 100644 --- a/srcpkgs/python-cryptography/template +++ b/srcpkgs/python-cryptography/template @@ -1,7 +1,7 @@ # Template file for 'python-cryptography' pkgname=python-cryptography version=2.4.2 -revision=1 +revision=2 wrksrc="cryptography-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools libressl-devel