MCPcopy
hub / github.com/caddyserver/caddy / UnmarshalCaddyfile

Method UnmarshalCaddyfile

modules/caddytls/capools.go:808–817  ·  view source on GitHub ↗
(d *caddyfile.Dispenser)

Source from the content-addressed store, hash-verified

806}
807
808func (scp *SystemCAPool) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
809 d.Next() // consume module name
810 if d.CountRemainingArgs() > 0 {
811 return d.ArgErr()
812 }
813 if d.NextBlock(0) {
814 return d.Err("system trust pool does not support any configuration")
815 }
816 return nil
817}
818
819// CertPool implements CA.
820func (scp SystemCAPool) CertPool() *x509.CertPool {

Callers 1

Calls 5

CountRemainingArgsMethod · 0.80
ArgErrMethod · 0.80
NextBlockMethod · 0.80
ErrMethod · 0.80
NextMethod · 0.65

Tested by 1