Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/crypto/x509/verify.go

    	}
    
    	if len(chains) > 0 {
    		err = nil
    	}
    	if len(chains) == 0 && err == nil {
    		err = UnknownAuthorityError{c, hintErr, hintCert}
    	}
    
    	return
    }
    
    func validHostnamePattern(host string) bool { return validHostname(host, true) }
    func validHostnameInput(host string) bool   { return validHostname(host, false) }
    
    // validHostname reports whether host is a valid hostname that can be matched or
    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

    		{host: "exa_mple.com", validInput: true, validPattern: true},
    		{host: "foo,bar"},
    		{host: "project-dev:us-central1:main"},
    	}
    	for _, tt := range tests {
    		if got := validHostnamePattern(tt.host); got != tt.validPattern {
    			t.Errorf("validHostnamePattern(%q) = %v, want %v", tt.host, got, tt.validPattern)
    		}
    		if got := validHostnameInput(tt.host); got != tt.validInput {
    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