aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--messages.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/messages.go b/messages.go
index 444e4d8..859061a 100644
--- a/messages.go
+++ b/messages.go
@@ -81,7 +81,7 @@ type Status int
// Statuses
const (
- StatusUnknown Status = iota
+ StatusUnknown Status = iota + 1
StatusPending
StatusProcessing
StatusValid
@@ -112,7 +112,7 @@ func (s *Status) UnmarshalText(b []byte) error {
type Resource int
const (
- ResNewReg Resource = iota
+ ResNewReg Resource = iota + 1
ResRecoverReg
ResNewAuthz
ResNewCert
@@ -142,7 +142,7 @@ func (r Resource) MarshalText() ([]byte, error) {
type IdentType int
-const IdentDNS IdentType = iota
+const IdentDNS IdentType = iota + 1
var identTypes = map[IdentType]string{
IdentDNS: "dns",
@@ -165,7 +165,7 @@ func (i *IdentType) UnmarshalText(b []byte) error {
type ChallengeType int
const (
- ChallengeHTTP ChallengeType = iota
+ ChallengeHTTP ChallengeType = iota + 1
ChallengeTLS
ChallengePOP
ChallengeDNS