From 777467aaf1d8121608f630ebaab8042de98b6da8 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 14 Feb 2016 17:56:06 +0100 Subject: Remove nonexistent fields --- authorize.go | 1 + register.go | 16 +++++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/authorize.go b/authorize.go index 240f802..55e8edf 100644 --- a/authorize.go +++ b/authorize.go @@ -5,6 +5,7 @@ import "time" // Authorization request type Authorization struct { Resource Resource `json:"resource"` // new-authz + ID string `json:"id,omitempty"` Identifier Identifier `json:"identifier"` Status Status `json:"status,omitempty"` // e.g. valid Expires *time.Time `json:"expires,omitempty"` diff --git a/register.go b/register.go index 1888fef..3139a2f 100644 --- a/register.go +++ b/register.go @@ -11,15 +11,13 @@ import ( // Registration Objects type Registration struct { - Resource Resource `json:"resource"` // new-reg - Contact Contacts `json:"contact,omitempty"` - Agreement string `json:"agreement,omitempty"` - Authorizations string `json:"authorizations,omitempty"` - Certificates string `json:"certificates,omitempty"` - ID int `json:"id,omitempty"` - Key *jose.JsonWebKey `json:"key,omitempty"` - InitialIP *net.IP `json:"initialIp,omitempty"` // not in draft - CreatedAt *time.Time `json:"createdAt,omitempty"` + Resource Resource `json:"resource"` // new-reg + ID int `json:"id,omitempty"` + Key *jose.JsonWebKey `json:"key,omitempty"` + Contact Contacts `json:"contact,omitempty"` + Agreement string `json:"agreement,omitempty"` + InitialIP *net.IP `json:"initialIp,omitempty"` // not in draft + CreatedAt *time.Time `json:"createdAt,omitempty"` } func (p *Provider) Register(s Signer, c Contacts) error { -- cgit v1.2.3