From 4083ff8bc3d762ff67905a9e6c25625e8ec11c16 Mon Sep 17 00:00:00 2001 From: Ely Deckers Date: Sat, 15 Oct 2016 19:32:28 +0200 Subject: [PATCH] Fix duplicate json tag in recoveryKeyMessage Fixed issue by removing unused recoveryKeyMessage struct Issue appears in Go 1.8+ due to this improvement to vet: https://go-review.googlesource.com/#/c/16704/ --- acme/messages.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/acme/messages.go b/acme/messages.go index 0efeae67..0f6514c3 100644 --- a/acme/messages.go +++ b/acme/messages.go @@ -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 @@ -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