diff options
author | Bob Long <robertjflong@gmail.com> | 2017-10-17 14:00:37 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2017-10-17 14:00:37 +0100 |
commit | 7c99874c7a3e7a89716f3ee0cdf696532e35ae35 (patch) | |
tree | c8c47bfb40e6981f4d9f81175512e49703eb985f /cmd | |
parent | 40c0070d77033c5bc4ab5816e5ffb21517e7603d (diff) |
Support a message to be passed and logged from client to server (#67)
* Support a message to be passed and logged from client to server
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/cashier/main.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/cashier/main.go b/cmd/cashier/main.go index f2d3bbe..78141c2 100644 --- a/cmd/cashier/main.go +++ b/cmd/cashier/main.go @@ -50,12 +50,15 @@ func main() { fmt.Print("Enter token: ") var token string fmt.Scanln(&token) + var message string + fmt.Print("Enter message: ") + fmt.Scanln(&message) var cert *ssh.Certificate if *useGRPC { - cert, err = client.RPCSign(pub, token, c) + cert, err = client.RPCSign(pub, token, message, c) } else { - cert, err = client.Sign(pub, token, c) + cert, err = client.Sign(pub, token, message, c) } if err != nil { log.Fatalln(err) |