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

Function jsonReqToTrue

api/signhandler/signhandler.go:79–107  ·  view source on GitHub ↗
(js jsonSignRequest)

Source from the content-addressed store, hash-verified

77}
78
79func jsonReqToTrue(js jsonSignRequest) signer.SignRequest {
80 sub := new(signer.Subject)
81 if js.Subject == nil {
82 sub = nil
83 } else {
84 // make a copy
85 *sub = *js.Subject
86 }
87
88 if js.Hostname != "" {
89 return signer.SignRequest{
90 Hosts: signer.SplitHosts(js.Hostname),
91 Subject: sub,
92 Request: js.Request,
93 Profile: js.Profile,
94 Label: js.Label,
95 Serial: js.Serial,
96 }
97 }
98
99 return signer.SignRequest{
100 Hosts: js.Hosts,
101 Subject: sub,
102 Request: js.Request,
103 Profile: js.Profile,
104 Label: js.Label,
105 Serial: js.Serial,
106 }
107}
108
109// Handle responds to requests for the CA to sign the certificate request
110// present in the "certificate_request" parameter for the host named

Callers 2

HandleMethod · 0.85
HandleMethod · 0.85

Calls 1

SplitHostsFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…