Classes | Functions | Variables
backports::ssl_match_hostname Namespace Reference

Classes

class  CertificateError

Functions

def _dnsname_match
def match_hostname

Variables

string __version__ = '3.4.0.2'

Detailed Description

The match_hostname() function from Python 3.3.3, essential when using SSL.

Function Documentation

def backports.ssl_match_hostname._dnsname_match (   dn,
  hostname,
  max_wildcards = 1 
) [private]
Matching according to RFC 6125, section 6.4.3

http://tools.ietf.org/html/rfc6125#section-6.4.3

Definition at line 11 of file backports/ssl_match_hostname/__init__.py.

def backports.ssl_match_hostname.match_hostname (   cert,
  hostname 
)
Verify that *cert* (in decoded format as returned by
SSLSocket.getpeercert()) matches the *hostname*.  RFC 2818 and RFC 6125
rules are followed, but IP addresses are not accepted for *hostname*.

CertificateError is raised on failure. On success, the function
returns nothing.

Definition at line 64 of file backports/ssl_match_hostname/__init__.py.


Variable Documentation

Definition at line 5 of file backports/ssl_match_hostname/__init__.py.



rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Jun 6 2019 21:51:51