method
    
    verify_wildcard
  
      v2_5_5 - 
      Show latest stable
 - 
    0 notes - 
    Class: SSL
    
  
  
- 1_8_6_287
 - 1_8_7_72
 - 1_8_7_330
 - 1_9_1_378
 - 1_9_2_180
 - 1_9_3_125
 - 1_9_3_392
 - 2_1_10 (0)
 - 2_2_9 (0)
 - 2_4_6 (0)
 - 2_5_5 (0)
 - 2_6_3 (0)
 - What's this?
 
verify_wildcard(domain_component, san_component)
  public
  
    Hide source    
    
      
  
# File ext/openssl/lib/openssl/ssl.rb, line 328 def verify_wildcard(domain_component, san_component) # :nodoc: parts = san_component.split("*", -1) return false if parts.size > 2 return san_component == domain_component if parts.size == 1 # RFC 6125, section 6.4.3, subitem 3. # The client SHOULD NOT attempt to match a presented identifier # where the wildcard character is embedded within an A-label or # U-label of an internationalized domain name. return false if domain_component.start_with?("xn--") && san_component != "*" parts[0].length + parts[1].length < domain_component.length && domain_component.start_with?(parts[0]) && domain_component.end_with?(parts[1]) end

  