MCPcopy
hub / github.com/grpc/grpc-go / addCRL

Method addCRL

security/advancedtls/crl_provider.go:80–83  ·  view source on GitHub ↗

AddCRL adds/updates provided CRL to in-memory storage.

(crl *CRL)

Source from the content-addressed store, hash-verified

78
79// AddCRL adds/updates provided CRL to in-memory storage.
80func (p *StaticCRLProvider) addCRL(crl *CRL) {
81 key := crl.certList.Issuer.ToRDNSequence().String()
82 p.crls[key] = crl
83}
84
85// CRL returns CRL struct if it was passed to NewStaticCRLProvider.
86func (p *StaticCRLProvider) CRL(cert *x509.Certificate) (*CRL, error) {

Callers 1

NewStaticCRLProviderFunction · 0.95

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected