1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-25 11:02:56 +02:00

Change solver interface definition

This commit is contained in:
xenolf 2015-06-12 00:14:33 +02:00
parent e600438aeb
commit 2b99a75aff
3 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@ type User interface {
type solver interface {
CanSolve() bool
Solve(challenge)
Solve(challenge challenge, domain string)
}
// Client is the user-friendy way to ACME

View File

@ -6,6 +6,6 @@ func (s *dvsniChallenge) CanSolve() bool {
return false
}
func (s *dvsniChallenge) Solve(challenge challenge) {
func (s *dvsniChallenge) Solve(challenge challenge, domain string) {
}

View File

@ -7,5 +7,6 @@ func (s *simpleHTTPChallenge) CanSolve() bool {
}
func (s *simpleHTTPChallenge) Solve(challenge challenge) {
func (s *simpleHTTPChallenge) Solve(chlng challenge, domain string) {
}