aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client.go')
-rw-r--r--client.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/client.go b/client.go
index c615066..e4b208c 100644
--- a/client.go
+++ b/client.go
@@ -9,6 +9,8 @@ import (
"net/textproto"
"regexp"
"time"
+
+ "github.com/square/go-jose"
)
// Solver decribes a solving interface
@@ -69,6 +71,11 @@ func (c Client) Nonce() (string, error) {
// Request issuance POST new-cert 201 -> cert
// Check for new cert GET cert 200
+// Signer describes a signing interface
+type Signer interface {
+ Sign([]byte, jose.NonceSource) ([]byte, error)
+}
+
// Post is used for
// new-reg, new-authz, challenge, new-cert
func (c *Client) Post(s Signer, uri string, v interface{}) (*http.Response, error) {