From a52095ab5024fe0e44179ad558f59cdbe389910d Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 7 Jan 2016 18:32:30 +0100 Subject: Refactor client --- cmd/acme/config.go | 40 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 22 deletions(-) (limited to 'cmd/acme/config.go') diff --git a/cmd/acme/config.go b/cmd/acme/config.go index e904e96..eca8117 100644 --- a/cmd/acme/config.go +++ b/cmd/acme/config.go @@ -1,8 +1,6 @@ package main import ( - "crypto/rsa" - "crypto/x509" "errors" "os" "path" @@ -36,16 +34,16 @@ type defaults struct { type provider struct { Directory string + *acme.Provider } type account struct { - Mail string - Phone string - Size int - Key string - key *rsa.PrivateKey - account *acme.Account - needsRegister bool + Mail string + Phone string + Size int + Key string + *acme.Account + acme.Contacts } type hook struct { @@ -53,19 +51,17 @@ type hook struct { } type desire struct { - Provider string - Account string - Altnames []string - Size int - Key string - Cert string - Webroot string - Hooks []string - provider *provider - account *account - key *rsa.PrivateKey - chain []*x509.Certificate - needsNewCert bool + Provider string + Account string + Altnames []string + Size int + Key string + Cert string + Webroot string + Hooks []string + provider *provider + account *account + *acme.Desire } var ( -- cgit v1.2.3