aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-12 01:09:16 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-12 01:09:16 +0100
commitdb62ad2af431bff566a953cd799d8034e802c3d8 (patch)
tree17efb790786c2f331f1ffd885dae586dcff7e610 /client.go
parent554cf29d302397634c9c58dba57ef4c785a05472 (diff)
State diagram
Diffstat (limited to 'client.go')
-rw-r--r--client.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/client.go b/client.go
index aff163d..7994226 100644
--- a/client.go
+++ b/client.go
@@ -130,6 +130,25 @@ func replyNonce(r *http.Response) string {
return r.Header.Get("Replay-Nonce")
}
+/*
+ directory
+ .
+ .
+ ....................................................
+ . . . .
+ . . . .
+ V "next" V "next" V V
+ new-reg ---+----> new-authz ---+----> new-cert revoke-cert
+ . | . | . ^
+ . | . | . | "revoke"
+ V | V | V |
+ reg* ----+ authz -----+ cert-----------+
+ . ^ |
+ . | "up" | "up"
+ V | V
+ challenge cert-chain
+*/
+
func (c *Client) Register(a *Account) error {
r := Registration{
Resource: ResNewReg,