From 87ae7c73ebe05f777e23087b1550d2cab42746ff Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Wed, 8 Aug 2018 21:55:02 +0100 Subject: 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 --- client/client.go | 1 + 1 file changed, 1 insertion(+) (limited to 'client') 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 { -- cgit v1.2.3