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 --- lib/proto.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/proto.go') diff --git a/lib/proto.go b/lib/proto.go index a67ad47..5d8c67a 100644 --- a/lib/proto.go +++ b/lib/proto.go @@ -7,10 +7,12 @@ type SignRequest struct { Key string `json:"key"` ValidUntil time.Time `json:"valid_until"` Message string `json:"message"` + Version string `json:"version"` } // SignResponse is sent by the server. type SignResponse struct { Status string `json:"status"` // Status will be "ok" or "error". Response string `json:"response"` // Response will contain either the signed certificate or the error message. + Version string `json:"version"` } -- cgit v1.2.3