Skip to content

Commit

Permalink
Merge pull request go-acme#301 from edeckers/bugfix/vet_json_tag_remo…
Browse files Browse the repository at this point in the history
…ve_unused_type

Fix duplicate json tag in recoveryKeyMessage
  • Loading branch information
xenolf authored Oct 17, 2016
2 parents 96d81ae + 4083ff8 commit 3690d6e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions acme/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,10 @@ type directory struct {
RevokeCertURL string `json:"revoke-cert"`
}

type recoveryKeyMessage struct {
Length int `json:"length,omitempty"`
Client jose.JsonWebKey `json:"client,omitempty"`
Server jose.JsonWebKey `json:"client,omitempty"`
}

type registrationMessage struct {
Resource string `json:"resource"`
Contact []string `json:"contact"`
Delete bool `json:"delete,omitempty"`
// RecoveryKey recoveryKeyMessage `json:"recoveryKey,omitempty"`
}

// Registration is returned by the ACME server after the registration
Expand All @@ -36,7 +29,6 @@ type Registration struct {
Agreement string `json:"agreement,omitempty"`
Authorizations string `json:"authorizations,omitempty"`
Certificates string `json:"certificates,omitempty"`
// RecoveryKey recoveryKeyMessage `json:"recoveryKey,omitempty"`
}

// RegistrationResource represents all important informations about a registration
Expand Down

0 comments on commit 3690d6e

Please sign in to comment.