blob: a67ad47162ac28e72397467e999b45c177234f58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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"`
}
// 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.
}
|