MCPcopy Index your code
hub / github.com/foxcpp/maddy / Get

Method Get

framework/config/tls/server.go:35–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (cfg *TLSConfig) Get() (*tls.Config, error) {
36 if cfg.loader == nil {
37 return nil, nil
38 }
39 tlsCfg := cfg.baseCfg.Clone()
40
41 err := cfg.loader.ConfigureTLS(tlsCfg)
42 if err != nil {
43 return nil, err
44 }
45
46 return tlsCfg, nil
47}
48
49// TLSDirective reads the TLS configuration and adds the reload handler to
50// reread certificates on SIGUSR2.

Callers 2

ModuleFromNodeFunction · 0.45
TLSDirectiveFunction · 0.45

Calls 1

ConfigureTLSMethod · 0.65

Tested by

no test coverage detected