diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/proto.go | 2 | ||||
-rw-r--r-- | lib/version.go | 4 |
2 files changed, 6 insertions, 0 deletions
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"` } diff --git a/lib/version.go b/lib/version.go new file mode 100644 index 0000000..b59bca4 --- /dev/null +++ b/lib/version.go @@ -0,0 +1,4 @@ +package lib + +// Version string +var Version = "unknown" |