crypto/x509.Certificate.DNSNames (field)
14 uses
crypto/x509 (current package)
constraints.go#L559: if err := n.check(c.DNSNames, uris, emails, c.IPAddresses); err != nil {
parser.go#L692: out.DNSNames, out.EmailAddresses, out.IPAddresses, out.URIs, err = parseSANExtension(e.Value)
parser.go#L697: if len(out.DNSNames) == 0 && len(out.EmailAddresses) == 0 && len(out.IPAddresses) == 0 && len(out.URIs) == 0 {
verify.go#L133: if len(c.DNSNames) >= maxNamesIncluded {
verify.go#L134: return fmt.Sprintf("x509: certificate is valid for %d names, but none matched %s", len(c.DNSNames), h.Host)
verify.go#L136: valid.WriteString(strings.Join(c.DNSNames, ", "))
verify.go#L957: for _, match := range c.DNSNames {
x509.go#L783: DNSNames []string
x509.go#L1270: if (len(template.DNSNames) > 0 || len(template.EmailAddresses) > 0 || len(template.IPAddresses) > 0 || len(template.URIs) > 0) &&
x509.go#L1277: ret[n].Value, err = marshalSANs(template.DNSNames, template.EmailAddresses, template.IPAddresses, template.URIs)
crypto/tls
common.go#L1574: if x509Cert.Subject.CommonName != "" && len(x509Cert.DNSNames) == 0 {
common.go#L1577: for _, san := range x509Cert.DNSNames {
github.com/refraction-networking/utls
common.go#L1566: if x509Cert.Subject.CommonName != "" && len(x509Cert.DNSNames) == 0 {
common.go#L1569: for _, san := range x509Cert.DNSNames {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |