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

Function makeCRLProvider

examples/features/advancedtls/server/main.go:155–165  ·  view source on GitHub ↗
(crlDirectory string)

Source from the content-addressed store, hash-verified

153}
154
155func makeCRLProvider(crlDirectory string) *advancedtls.FileWatcherCRLProvider {
156 options := advancedtls.FileWatcherOptions{
157 CRLDirectory: crlDirectory,
158 }
159 provider, err := advancedtls.NewFileWatcherCRLProvider(options)
160 if err != nil {
161 fmt.Printf("Error making CRL Provider: %v\nExiting...", err)
162 os.Exit(1)
163 }
164 return provider
165}
166
167func main() {
168 credentialsDirectory := flag.String("credentials_directory", "", "Path to the creds directory of this repo")

Callers 1

createAndRunTLSServerFunction · 0.70

Calls 2

PrintfMethod · 0.65

Tested by

no test coverage detected