aboutsummaryrefslogtreecommitdiff
path: root/client/client.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2018-08-08 21:55:02 +0100
committerNiall Sheridan <nsheridan@gmail.com>2018-08-10 18:35:13 +0100
commit87ae7c73ebe05f777e23087b1550d2cab42746ff (patch)
tree45e4ea4ce48385ebbb9ba83447bfb5d66d97dea7 /client/client.go
parent3e006c39b0a4411e91e80de261d0e7b5353d44c0 (diff)
Add version string
Add `lib.Version` to get updated at build time. Add --version flags to cashier and cashierd Send client version in the signing request Send server version in http response headers and in signing response Set version at build time
Diffstat (limited to 'client/client.go')
-rw-r--r--client/client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/client.go b/client/client.go
index 628783a..dc4ada1 100644
--- a/client/client.go
+++ b/client/client.go
@@ -142,6 +142,7 @@ func Sign(pub ssh.PublicKey, token string, conf *Config) (*ssh.Certificate, erro
s := &lib.SignRequest{
Key: string(lib.GetPublicKey(pub)),
ValidUntil: time.Now().Add(validity),
+ Version: lib.Version,
}
resp := &lib.SignResponse{}
for {