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

Function loadCRL

security/advancedtls/crl_test.go:256–262  ·  view source on GitHub ↗
(t *testing.T, path string)

Source from the content-addressed store, hash-verified

254}
255
256func loadCRL(t *testing.T, path string) *CRL {
257 crl, err := ReadCRLFile(path)
258 if err != nil {
259 t.Fatalf("ReadCRLFile(%v) failed err = %v", path, err)
260 }
261 return crl
262}
263
264func checkRevocation(conn tls.ConnectionState, cfg RevocationOptions) error {
265 return checkChainRevocation(conn.VerifiedChains, cfg)

Callers 1

TestVerifyCrlFunction · 0.85

Calls 2

ReadCRLFileFunction · 0.85
FatalfMethod · 0.65

Tested by

no test coverage detected