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

Function makeCRLProvider

examples/features/advancedtls/client/main.go:141–151  ·  view source on GitHub ↗
(crlDirectory string)

Source from the content-addressed store, hash-verified

139}
140
141func makeCRLProvider(crlDirectory string) *advancedtls.FileWatcherCRLProvider {
142 options := advancedtls.FileWatcherOptions{
143 CRLDirectory: crlDirectory,
144 }
145 provider, err := advancedtls.NewFileWatcherCRLProvider(options)
146 if err != nil {
147 fmt.Printf("Error making CRL Provider: %v\nExiting...", err)
148 os.Exit(1)
149 }
150 return provider
151}
152
153// --- Custom Verification ---
154func customVerificationSucceed(info *advancedtls.HandshakeVerificationInfo) (*advancedtls.PostHandshakeVerificationResults, error) {

Callers 2

tlsWithCRLsToGoodServerFunction · 0.70

Calls 2

PrintfMethod · 0.65

Tested by

no test coverage detected