Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for matchDomainConstraint (0.17 sec)

  1. src/crypto/x509/verify.go

    	}
    
    	// Otherwise the constraint is like a DNS constraint of the domain part
    	// of the mailbox.
    	return matchDomainConstraint(mailbox.domain, constraint)
    }
    
    func matchURIConstraint(uri *url.URL, constraint string) (bool, error) {
    	// From RFC 5280, Section 4.2.1.10:
    	// “a uniformResourceIdentifier that does not include an authority
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  2. src/crypto/x509/verify_test.go

    	{".example.com", "www..example.com", true, false},
    }
    
    func TestNameConstraints(t *testing.T) {
    	for i, test := range nameConstraintTests {
    		result, err := matchDomainConstraint(test.domain, test.constraint)
    
    		if err != nil && !test.expectError {
    			t.Errorf("unexpected error for test #%d: domain=%s, constraint=%s, err=%s", i, test.domain, test.constraint, err)
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
Back to top