- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkChainForKeyUsage (0.32 sec)
-
src/crypto/x509/root_darwin.go
} // If any key usage is acceptable then we're done. for _, usage := range keyUsages { if usage == ExtKeyUsageAny { return chain, nil } } if !checkChainForKeyUsage(chain[0], keyUsages) { return nil, CertificateInvalidError{c, IncompatibleUsage, ""} } return chain, nil } // exportCertificate returns a *Certificate for a SecCertificateRef.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 01 00:36:38 UTC 2023 - 3.5K bytes - Viewed (0) -
src/crypto/x509/verify.go
// key usages. return candidateChains, nil } } chains = make([][]*Certificate, 0, len(candidateChains)) for _, candidate := range candidateChains { if checkChainForKeyUsage(candidate, opts.KeyUsages) { chains = append(chains, candidate) } } if len(chains) == 0 { return nil, CertificateInvalidError{c, IncompatibleUsage, ""} } return chains, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:58:39 UTC 2024 - 35.7K bytes - Viewed (0)