diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2017-01-05 23:28:26 +0000 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2017-01-05 23:28:26 +0000 |
commit | 9e9a7d50970f1424245d88169de82988fd57e112 (patch) | |
tree | 25aca2f5e18fe3ff454af34d5d75f8c5204d81fb /lib/proto.go | |
parent | 8066efd45861e7c024fc1daabc6d002266a527e7 (diff) |
Move GetPublicKey to the shared `lib` package
Diffstat (limited to 'lib/proto.go')
-rw-r--r-- | lib/proto.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/proto.go b/lib/proto.go new file mode 100644 index 0000000..f3d7115 --- /dev/null +++ b/lib/proto.go @@ -0,0 +1,15 @@ +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"` +} + +// 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. +} |