aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/provider.go b/provider.go
index 431bc46..ea037d6 100644
--- a/provider.go
+++ b/provider.go
@@ -218,13 +218,9 @@ func pickChallenge(c []Challenge) (int, Challenge) {
}
func (p *Provider) Authorize(s ThumbSigner, domain string) error {
- ident := Identifier{
- Type: IdentDNS,
- Value: domain,
- }
r := &Authorization{
Resource: ResNewAuthz,
- Identifier: ident,
+ Identifier: NewIdent(domain),
}
resp, err := p.post(p.NewAuthz, s, r)
if err != nil {