crypto/x509.Certificate.DNSNames (field)
9 uses
crypto/x509 (current package)
parser.go#L684: out.DNSNames, out.EmailAddresses, out.IPAddresses, out.URIs, err = parseSANExtension(e.Value)
parser.go#L689: if len(out.DNSNames) == 0 && len(out.EmailAddresses) == 0 && len(out.IPAddresses) == 0 && len(out.URIs) == 0 {
verify.go#L121: valid = strings.Join(c.DNSNames, ", ")
verify.go#L1127: for _, match := range c.DNSNames {
x509.go#L765: DNSNames []string
x509.go#L1187: if (len(template.DNSNames) > 0 || len(template.EmailAddresses) > 0 || len(template.IPAddresses) > 0 || len(template.URIs) > 0) &&
x509.go#L1194: ret[n].Value, err = marshalSANs(template.DNSNames, template.EmailAddresses, template.IPAddresses, template.URIs)
crypto/tls
common.go#L1446: if x509Cert.Subject.CommonName != "" && len(x509Cert.DNSNames) == 0 {
common.go#L1449: for _, san := range x509Cert.DNSNames {
 |
The pages are generated with Golds v0.7.6. (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. |