Skip to content

Commit

Permalink
py-m2crypto: Update to 0.36.0.
Browse files Browse the repository at this point in the history
Based on TritonDataCenter#282 from sjorge.

0.36.0 - 2020-07-13
-------------------

- wrap SocketIO in io.Buffered* for makefile <lethliel>
- SSL.Connection.close accepts an argument to force the socket closing
  <Christophe Haen>
- SSL.Connection: make the clientPostConnectionCheck an instance
  attribute <Christophe Haen>
- Fixed bug with usage of unexisting method getreply at SSL_Transport
  <roman-nagaev>
- Add appveyor builds for python 3.7 and 3.8 <Daniel A. Wozniak>
- Fixed syntax warning on line 44. <randomfox>
- Update M2Crypto.six to 1.13.0 <Matěj Cepl>
- base64.decodestring() was finally removed in Python 3.8. <Matěj Cepl>
- wrap SocketIO in io.Buffered* for makefile <lethliel>
- NULL is legal argument for key and iv paramters of EVP_CipherInit(3)
  <Matěj Cepl>
- Expose X509_V_FLAG_ALLOW_PROXY_CERTS verification flag and
  X509_STORE_SET_FLAGS function <Christophe Haen>
- Stop testing for 2.6 and 3.4 on Travis. Start testing 3.8 <Matěj Cepl>
- Extend test cert validity to 2049 <Bernhard M. Wiedemann>
- Revert using typing module in 2.6. It is just not worthy. <Matěj Cepl>
- Update Debian/stable SSL as well <Matěj Cepl>
- Make tests pass again. <Matěj Cepl>
- Stop using string module, which has been deprecated. <Matěj Cepl>
- Tiny fixes to make pyls more happy <Matěj Cepl>
- CI: Rework Fedora CI configuration <Neal Gompa>

0.35.2 - 2019-06-10
-------------------

- tests.test_rsa: Fix typo to match for proper exception <Sebastian
  Andrzej Siewior>
- Expose CRLs verification flags <Christophe Haen>

0.35.1 - 2019-06-08
-------------------

- Actually, really fix compatibility with OpenSSL 1.1.1c. Thank you,
  Sebastian Andrzej Siewior from the Debian team for resolving it.

0.34.0 - 2019-05-30
-------------------

- Use more recent version of OpenSSL on Windows
- Be resilient against the situation when no erorr happened.
- Correct URL of https://www.schneier.com/academic/smime/
- Use shlex.split() for CPP

0.33.0 - 2019-04-26
-------------------

- eb4525c - Stop pretending to support Python 3.4. <Matěj Cepl>
- 6a89548 - Fix use of urlunsplit (25 hours ago) <Andreas Schwab>
- 0a5a356 - tests/test_ssl: use -ciphercuites for TLS1.3 cipher in
      openssl1.1 <Sebastian Andrzej Siewior>
- 8a0a3e3 - There are apparently multiword CPP variables. Taking that
      into account. <Matěj Cepl>
  • Loading branch information
jperkin committed Sep 17, 2020
1 parent 408b983 commit 4575d2c
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 63 deletions.
12 changes: 7 additions & 5 deletions security/py-m2crypto/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.53 2020/04/24 11:41:37 nia Exp $
# $NetBSD: Makefile,v 1.54 2020/09/17 08:56:38 jperkin Exp $

DISTNAME= M2Crypto-0.32.0
DISTNAME= M2Crypto-0.36.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
PKGREVISION= 1
CATEGORIES= security python
MASTER_SITES= ${MASTER_SITE_PYPI:=M/M2Crypto/}

Expand All @@ -11,7 +10,7 @@ HOMEPAGE= https://gitlab.com/m2crypto/m2crypto
COMMENT= Crypto and SSL toolkit for Python
LICENSE= m2crypto-license

BROKEN= "Fails to build with OpenSSL 1.1"
USE_LANGUAGES+= c c++11

.include "../../lang/python/pyversion.mk"

Expand All @@ -24,7 +23,10 @@ PLIST.typing= yes

PYSETUPBUILDARGS= build_ext --openssl=${BUILDLINK_PREFIX.openssl}

.include "../../devel/swig/buildlink3.mk"
pre-configure:
${LN} -s ${PREFIX}/bin/swig3.0 ${BUILDLINK_DIR}/bin/swig

.include "../../devel/swig3/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
14 changes: 7 additions & 7 deletions security/py-m2crypto/distinfo
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.18 2019/03/04 18:41:48 adam Exp $
$NetBSD: distinfo,v 1.19 2020/09/17 08:56:38 jperkin Exp $

SHA1 (M2Crypto-0.32.0.tar.gz) = b36c43373f952401b9cc190e4e5ddd09028e276b
RMD160 (M2Crypto-0.32.0.tar.gz) = 4d8b714b105ba4e2616d203edd72733736b124c1
SHA512 (M2Crypto-0.32.0.tar.gz) = 477cc30748b3ddc21b66872a88ba0e111a592928ce0d2edc9b72c9a8fa7aa2b422e1b785b830e8d8fcab9f1678928634627b0ea3d57632ec5769ba4ed64c16f8
Size (M2Crypto-0.32.0.tar.gz) = 1292542 bytes
SHA1 (patch-SWIG___m2crypto__wrap.c) = 2672787cd8fd70b5ac2cf634b6a913aefc27b26c
SHA1 (patch-setup.py) = ec43146954a849a7e12003397df19e6567df888c
SHA1 (M2Crypto-0.36.0.tar.gz) = 666735839ad0d9b414cc39937ffad2675297bb02
RMD160 (M2Crypto-0.36.0.tar.gz) = e813fd1da12a8b8a5550931129d29977a25cef5d
SHA512 (M2Crypto-0.36.0.tar.gz) = 5b7d6d10c943ff0e09e0e9748d5578e7e0f7659a73de4ba49481152bca05871aef2bfbb869e1636a7cebcf2dd8b9f67fb0d299a833d1d4ebd538031c35d7bca1
Size (M2Crypto-0.36.0.tar.gz) = 1127584 bytes
SHA1 (patch-SWIG___evp.i) = 07fc94a5c7dbd2fcfde716ec316d8a833f28ffc7
SHA1 (patch-SWIG___m2crypto.i) = 5f6024d2be735c0cfcfd64ed69d6da289c8fd268
15 changes: 15 additions & 0 deletions security/py-m2crypto/patches/patch-SWIG___evp.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$NetBSD: patch-SWIG___evp.i,v 1.1 2020/09/17 08:56:38 jperkin Exp $

Avoid conflict with hmac() definition from stdlib.h (NetBSD).

--- SWIG/_evp.i.orig 2020-04-14 21:09:41.000000000 +0000
+++ SWIG/_evp.i
@@ -361,7 +361,7 @@ PyObject *hmac_final(HMAC_CTX *ctx) {
return ret;
}
-PyObject *hmac(PyObject *key, PyObject *data, const EVP_MD *md) {
+PyObject *hmac_func(PyObject *key, PyObject *data, const EVP_MD *md) {
const void *kbuf, *dbuf;
void *blob;
int klen = 0;
19 changes: 19 additions & 0 deletions security/py-m2crypto/patches/patch-SWIG___m2crypto.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$NetBSD: patch-SWIG___m2crypto.i,v 1.1 2020/09/17 08:56:38 jperkin Exp $

Find local includes correctly.

--- SWIG/_m2crypto.i.orig 2020-01-30 08:17:01.000000000 +0000
+++ SWIG/_m2crypto.i
@@ -46,9 +46,9 @@ typedef unsigned __int64 uint64_t;
#include <openssl/err.h>
#include <openssl/rand.h>
-#include <_lib.h>
-#include <libcrypto-compat.h>
-#include <py3k_compat.h>
+#include "_lib.h"
+#include "libcrypto-compat.h"
+#include "py3k_compat.h"
#include "compile.h"
24 changes: 0 additions & 24 deletions security/py-m2crypto/patches/patch-SWIG___m2crypto__wrap.c

This file was deleted.

27 changes: 0 additions & 27 deletions security/py-m2crypto/patches/patch-setup.py

This file was deleted.

0 comments on commit 4575d2c

Please sign in to comment.