- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for hasNameConstraints (0.18 sec)
-
src/crypto/x509/verify.go
if len(currentChain) == 0 { return errors.New("x509: internal error: empty chain when appending CA cert") } } if (certType == intermediateCertificate || certType == rootCertificate) && c.hasNameConstraints() { toCheck := []*Certificate{} for _, c := range currentChain { if c.hasSANExtension() { toCheck = append(toCheck, c) } } for _, sanCert := range toCheck {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:58:39 UTC 2024 - 35.7K bytes - Viewed (0) -
src/crypto/x509/x509.go
func (c *Certificate) CheckSignature(algo SignatureAlgorithm, signed, signature []byte) error { return checkSignature(algo, signed, signature, c.PublicKey, true) } func (c *Certificate) hasNameConstraints() bool { return oidInExtensions(oidExtensionNameConstraints, c.Extensions) } func (c *Certificate) getSANExtension() []byte { for _, e := range c.Extensions { if e.Id.Equal(oidExtensionSubjectAltName) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:20:15 UTC 2024 - 82K bytes - Viewed (0)