import security/py-M2Crypto 0.21.1

M2Crypto is the most complete Python wrapper for OpenSSL featuring
RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including
AES); SSL functionality to implement clients and servers; HTTPS
extensions to Python's httplib, urllib, and xmlrpclib; unforgeable
HMAC'ing AuthCookies for web session management; FTP/TLS client and
server; S/MIME; ZServerSSL: A HTTPS server for Zope and ZSmime: An
S/MIME messenger for Zope. M2Crypto can also be used to provide SSL
for Twisted.

with help and ok
sthen@ benoit@
This commit is contained in:
rpe 2013-03-22 20:51:43 +00:00
parent 26436ce422
commit 83d0be72e8
6 changed files with 164 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/03/22 20:51:43 rpe Exp $
COMMENT = crypto and ssl toolkit for python
MODPY_EGG_VERSION = 0.21.1
DISTNAME = M2Crypto-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = security
HOMEPAGE = http://chandlerproject.org/Projects/MeTooCrypto
MAINTAINER = Robert Peichaer <rpe@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += crypto pthread ssl ${MODPY_WANTLIB}
MASTER_SITES = ${MASTER_SITE_PYPI:=M/M2Crypto/}
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
BUILD_DEPENDS = devel/swig
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (M2Crypto-0.21.1.tar.gz) = JblEmFBcLYAO5GXbDMGv8JexYVrcOsBCochc7KJk/Ao=
SIZE (M2Crypto-0.21.1.tar.gz) = 413563

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-SWIG__ssl_i,v 1.1.1.1 2013/03/22 20:51:43 rpe Exp $
--- SWIG/_ssl.i.orig Sat Jan 15 20:10:06 2011
+++ SWIG/_ssl.i Mon Feb 18 21:17:58 2013
@@ -48,8 +48,10 @@ extern const char *SSL_alert_desc_string(int);
%rename(ssl_get_alert_desc_v) SSL_alert_desc_string_long;
extern const char *SSL_alert_desc_string_long(int);
+#ifdef SSL_TXT_SSLV2
%rename(sslv2_method) SSLv2_method;
extern SSL_METHOD *SSLv2_method(void);
+#endif
%rename(sslv3_method) SSLv3_method;
extern SSL_METHOD *SSLv3_method(void);
%rename(sslv23_method) SSLv23_method;

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-tests_test_ssl_py,v 1.1.1.1 2013/03/22 20:51:43 rpe Exp $
--- tests/test_ssl.py.orig Sat Jan 15 20:10:05 2011
+++ tests/test_ssl.py Mon Feb 18 21:48:40 2013
@@ -373,6 +373,7 @@ class MiscSSLClientTestCase(BaseSSLClientTestCase):
self.stop_server(pid)
self.failIf(string.find(data, 's_server -quiet -www') == -1)
+ """
def test_sslv23_no_v2(self):
if fips_mode: # TLS is required in FIPS mode
return
@@ -416,6 +417,7 @@ class MiscSSLClientTestCase(BaseSSLClientTestCase):
s.close()
finally:
self.stop_server(pid)
+ """
def test_cipher_mismatch(self):
self.args = self.args + ['-cipher', 'AES256-SHA']

View File

@ -0,0 +1,8 @@
M2Crypto is the most complete Python wrapper for OpenSSL featuring
RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including
AES); SSL functionality to implement clients and servers; HTTPS
extensions to Python's httplib, urllib, and xmlrpclib; unforgeable
HMAC'ing AuthCookies for web session management; FTP/TLS client and
server; S/MIME; ZServerSSL: A HTTPS server for Zope and ZSmime: An
S/MIME messenger for Zope. M2Crypto can also be used to provide SSL
for Twisted.

View File

@ -0,0 +1,94 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/03/22 20:51:43 rpe Exp $
lib/python${MODPY_VERSION}/site-packages/M2Crypto/
lib/python${MODPY_VERSION}/site-packages/M2Crypto-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/M2Crypto-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/M2Crypto-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/M2Crypto-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/M2Crypto-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/M2Crypto/ASN1.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/ASN1.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/AuthCookie.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/AuthCookie.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/BIO.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/BIO.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/BN.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/BN.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/DH.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/DH.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/DSA.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/DSA.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/EC.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/EC.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/EVP.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/EVP.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/Engine.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/Engine.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/Err.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/Err.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/PublicKey.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/PublicKey.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/PublicKeyRing.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/PublicKeyRing.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/RSA.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/RSA.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/__init__.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/constants.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/constants.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/packet.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/PGP/packet.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/RC4.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/RC4.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/RSA.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/RSA.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/Rand.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/Rand.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SMIME.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SMIME.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/Checker.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/Checker.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/Cipher.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/Cipher.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/Connection.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/Connection.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/Context.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/Context.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/SSLServer.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/SSLServer.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/Session.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/Session.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/__init__.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/cb.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/cb.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/ssl_dispatcher.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/ssl_dispatcher.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/timeout.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/SSL/timeout.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/X509.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/X509.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/__init__.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/__m2crypto.so
lib/python${MODPY_VERSION}/site-packages/M2Crypto/callback.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/callback.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/ftpslib.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/ftpslib.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/httpslib.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/httpslib.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/m2.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/m2.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/m2urllib.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/m2urllib.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/m2urllib2.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/m2urllib2.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/m2xmlrpclib.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/m2xmlrpclib.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/threading.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/threading.pyc
lib/python${MODPY_VERSION}/site-packages/M2Crypto/util.py
lib/python${MODPY_VERSION}/site-packages/M2Crypto/util.pyc