(js jsonSignRequest)
| 77 | } |
| 78 | |
| 79 | func 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 |
no test coverage detected
searching dependent graphs…