Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for matchIPConstraint (0.2 sec)

  1. src/crypto/x509/verify.go

    		net.ParseIP(host) != nil {
    		return false, fmt.Errorf("URI with IP (%q) cannot be matched against constraints", uri.String())
    	}
    
    	return matchDomainConstraint(host, constraint)
    }
    
    func matchIPConstraint(ip net.IP, constraint *net.IPNet) (bool, error) {
    	if len(ip) != len(constraint.IP) {
    		return false, nil
    	}
    
    	for i := range ip {
    		if mask := constraint.Mask[i]; ip[i]&mask != constraint.IP[i]&mask {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top