Select Git revision
-
Niall Sheridan authored
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
Niall Sheridan authoredAdd `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
proto.go 561 B
package lib
import "time"
// SignRequest represents a signing request sent to the server.
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"`
}