From 6171420108aa0111e85e3397d7acdf140279c759 Mon Sep 17 00:00:00 2001 From: Roland Shoemaker Date: Sun, 18 Oct 2015 18:59:05 -0700 Subject: [PATCH] Golint fixes to builds work --- core/objects.go | 4 ++-- policy/policy-authority.go | 2 +- ra/registration-authority.go | 6 +++--- va/validation-authority.go | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/objects.go b/core/objects.go index 7f4868930..6081e738e 100644 --- a/core/objects.go +++ b/core/objects.go @@ -97,10 +97,10 @@ const ( ChallengeTypeDNS01 = "dns-01" ) -// The suffix appended to pseudo-domain names in DVSNI challenges +// TLSSNISuffix is appended to pseudo-domain names in DVSNI challenges const TLSSNISuffix = "acme.invalid" -// The label attached to DNS names in DNS challenges +// DNSPrefix is attached to DNS names in DNS challenges const DNSPrefix = "_acme-challenge" func (pd *ProblemDetails) Error() string { diff --git a/policy/policy-authority.go b/policy/policy-authority.go index 5d68757cf..9c70b69e2 100644 --- a/policy/policy-authority.go +++ b/policy/policy-authority.go @@ -98,7 +98,7 @@ type SyntaxError struct{} // Internet. type NonPublicError struct{} -// TLDError indicates that one or more identifiers was an ICANN-managed TLD +// ErrICANNTLD indicates that one or more identifiers was an ICANN-managed TLD var ErrICANNTLD = errors.New("Name is an ICANN TLD") // ErrBlacklisted indicates we have blacklisted one or more of these diff --git a/ra/registration-authority.go b/ra/registration-authority.go index 9980dd498..930b0ac7b 100644 --- a/ra/registration-authority.go +++ b/ra/registration-authority.go @@ -26,9 +26,9 @@ import ( blog "github.com/letsencrypt/boulder/log" ) -// 10 month default authorization lifetime. When used with a 90-day cert -// lifetime, this allows creation of certs that will cover a whole year, -// plus a grace period of a month. +// DefaultAuthorizationLifetime is the 10 month default authorization lifetime. +// When used with a 90-day cert lifetime, this allows creation of certs that will +// cover a whole year, plus a grace period of a month. // TODO(jsha): Read from a config file. const DefaultAuthorizationLifetime = 300 * 24 * time.Hour diff --git a/va/validation-authority.go b/va/validation-authority.go index 918624d05..16d0e38bb 100644 --- a/va/validation-authority.go +++ b/va/validation-authority.go @@ -36,7 +36,7 @@ const maxRedirect = 10 var validationTimeout = time.Second * 5 -// Returned by CheckCAARecords if it has to follow too many +// ErrTooManyCNAME is returned by CheckCAARecords if it has to follow too many // consecutive CNAME lookups. var ErrTooManyCNAME = errors.New("too many CNAME/DNAME lookups")