MCPcopy Create free account
hub / github.com/cloudflare/cfssl / ReadStdin

Function ReadStdin

cli/cli.go:152–157  ·  view source on GitHub ↗

ReadStdin reads from stdin if the file is "-"

(filename string)

Source from the content-addressed store, hash-verified

150
151// ReadStdin reads from stdin if the file is "-"
152func ReadStdin(filename string) ([]byte, error) {
153 if filename == "-" {
154 return io.ReadAll(os.Stdin)
155 }
156 return os.ReadFile(filename)
157}
158
159// PrintCert outputs a cert, key and csr to stdout
160func PrintCert(key, csrBytes, cert []byte) {

Callers 9

genkeyMainFunction · 0.92
certinfoMainFunction · 0.92
gencertMainFunction · 0.92
signerMainFunction · 0.92
bundlerMainFunction · 0.92
gencrlMainFunction · 0.92
gencsrMainFunction · 0.92
selfSignMainFunction · 0.92
TestReadStdinFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestReadStdinFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…