Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

python2-backports.ssl_match_hostname-3.5.0.1-lp152.3.2 RPM for noarch

From OpenSuSE Leap 15.2 for noarch

Name: python2-backports.ssl_match_hostname Distribution: openSUSE Leap 15.2
Version: 3.5.0.1 Vendor: openSUSE
Release: lp152.3.2 Build date: Fri Sep 20 22:31:48 2019
Group: Development/Languages/Python Build host: cloud119
Size: 22954 Source RPM: python-backports.ssl_match_hostname-3.5.0.1-lp152.3.2.src.rpm
Packager: https://bugs.opensuse.org
Url: http://bitbucket.org/brandon/backports.ssl_match_hostname
Summary: The ssl.match_hostname() function from Python 3.5
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 backport brings ``match_hostname()`` to users
of earlier versions of Python.
Simply make this distribution a dependency of your package,
and then use it like this::

    from backports.ssl_match_hostname import match_hostname, CertificateError
    ...
    sslsock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_SSLv3,
                              cert_reqs=ssl.CERT_REQUIRED, ca_certs=...)
    try:
        match_hostname(sslsock.getpeercert(), hostname)
    except CertificateError, ce:
        ...

Provides

Requires

License

Python-2.0

Changelog

* Thu Aug 03 2017 toddrme2178@gmail.com
  - Support python3 for python < 3.5
* Fri Mar 31 2017 toddrme2178@gmail.com
  -  %{python_sitelib}/backports is a namespace package, and so under
    python 2.x it must have a proper
    %{python_sitelib}/backports/__init__.py file.
    python-backports provides this __init__.py to prevent backports
    packages from conflicting.
    Please see the following links for more details:
      https://pypi.python.org/pypi/backports/
      https://www.python.org/dev/peps/pep-0420/%23namespace-packages-today
* Fri Mar 31 2017 tbechtold@suse.com
  - Remove not needed Requires and BuildRequires for python-backports
* Fri Mar 31 2017 toddrme2178@gmail.com
  - Add python2 provides.
* Thu Mar 30 2017 toddrme2178@gmail.com
  - Use the common __init__.py used by the python-backports package
    to avoid conflicts.
* Mon Apr 25 2016 freitag@owncloud.com
  - Update to upstream version 3.5.0.1
* Tue May 20 2014 toddrme2178@gmail.com
  - Initial version

Files

/usr/lib/python2.7/site-packages/backports
/usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1-py2.7.egg-info
/usr/lib/python2.7/site-packages/backports/ssl_match_hostname
/usr/lib/python2.7/site-packages/backports/ssl_match_hostname/__init__.py
/usr/lib/python2.7/site-packages/backports/ssl_match_hostname/__init__.pyc
/usr/lib/python2.7/site-packages/backports/ssl_match_hostname/__init__.pyo
/usr/share/doc/packages/python2-backports.ssl_match_hostname
/usr/share/doc/packages/python2-backports.ssl_match_hostname/LICENSE.txt
/usr/share/doc/packages/python2-backports.ssl_match_hostname/README.txt


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Apr 9 11:50:38 2024