summaryrefslogtreecommitdiff
path: root/security/py-backports.ssl_match_hostname/Makefile
diff options
context:
space:
mode:
authorwiz <wiz>2014-01-27 19:53:30 +0000
committerwiz <wiz>2014-01-27 19:53:30 +0000
commitcc9ee1973dfc97ed69fff511953898c0b2bd1900 (patch)
treefd11901e33297d143f9dd0b1a91fd3760141ec12 /security/py-backports.ssl_match_hostname/Makefile
parent779919c21bb5bc6eb35362c7fb54f70d1a734534 (diff)
downloadpkgsrc-cc9ee1973dfc97ed69fff511953898c0b2bd1900.tar.gz
Import py27-backports.ssl_match_hostname-3.4.0.2 as
security/py-backports.ssl_match_hostname. The Secure Sockets layer is only actually secure if you check the hostname in the certificate returned by the server to which you are connecting, and verify that it matches to hostname that you are trying to reach. But the matching logic, defined in RFC2818, can be a bit tricky to implement on your own. So the ssl package in the Standard Library of Python 3.2 and greater now includes a match_hostname() function for performing this check instead of requiring every application to implement the check separately. This package contains the backport of this functionality to Python 2.
Diffstat (limited to 'security/py-backports.ssl_match_hostname/Makefile')
-rw-r--r--security/py-backports.ssl_match_hostname/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/security/py-backports.ssl_match_hostname/Makefile b/security/py-backports.ssl_match_hostname/Makefile
new file mode 100644
index 00000000000..bf02571fb6f
--- /dev/null
+++ b/security/py-backports.ssl_match_hostname/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2014/01/27 19:53:30 wiz Exp $
+
+DISTNAME= backports.ssl_match_hostname-3.4.0.2
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= python security www
+MASTER_SITES= https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://pypi.python.org/pypi/backports.ssl_match_hostname
+COMMENT= Python SSL support module for Python 2
+LICENSE= python-software-foundation
+
+PYTHON_VERSIONS_INCOMPATIBLE= 33 # included in 3.2+
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"