Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for domainToReverseLabels (0.24 sec)

  1. src/crypto/x509/verify.go

    	// domain part.
    	if _, ok := domainToReverseLabels(in); !ok {
    		return mailbox, false
    	}
    
    	mailbox.local = string(localPartBytes)
    	mailbox.domain = in
    	return mailbox, true
    }
    
    // domainToReverseLabels converts a textual domain name like foo.example.com to
    // the list of labels in reverse order, e.g. ["com", "example", "foo"].
    func domainToReverseLabels(domain string) (reverseLabels []string, ok bool) {
    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/parser.go

    			}
    			uri, err := url.Parse(uriStr)
    			if err != nil {
    				return fmt.Errorf("x509: cannot parse URI %q: %s", uriStr, err)
    			}
    			if len(uri.Host) > 0 {
    				if _, ok := domainToReverseLabels(uri.Host); !ok {
    					return fmt.Errorf("x509: cannot parse URI %q: invalid domain", uriStr)
    				}
    			}
    			uris = append(uris, uri)
    		case nameTypeIP:
    			switch len(data) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top