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) {
}