parameters: (ipname, host_ip)
return_statement: return ip == host_ip
docstring: Exact matching of IP addresses.
  
  
  
      RFC 6125 explicitly doesn't define an algorithm for this
  
      (section 1.7.2 - "Out of Scope").
docstring_summary: Exact matching of IP addresses.
docstring_tokens: Exact matching of IP addresses .
function: def _ipaddress_match(ipname, host_ip):
  
      """Exact matching of IP addresses.
  
  
  
      RFC 6125 explicitly doesn't define an algorithm for this
  
      (section 1.7.2 - "Out of Scope").
  
      """
  
      # OpenSSL may add a trailing newline to a subjectAltName's IP address
  
      # Divergence from upstream: ipaddress can't handle byte str
  
      ip = ipaddress.ip_address(_to_unicode(ipname).rstrip())
  
      return ip == host_ip
function_tokens: def _ipaddress_match ( ipname , host_ip ) : # OpenSSL may add a trailing newline to a subjectAltName's IP address # Divergence from upstream: ipaddress can't handle byte str ip = ipaddress . ip_address ( _to_unicode ( ipname ) . rstrip ( ) ) return ip == host_ip