forked from TrueCloudLab/lego
Change solver interface definition
This commit is contained in:
parent
e600438aeb
commit
2b99a75aff
3 changed files with 3 additions and 2 deletions
|
@ -34,7 +34,7 @@ type User interface {
|
||||||
|
|
||||||
type solver interface {
|
type solver interface {
|
||||||
CanSolve() bool
|
CanSolve() bool
|
||||||
Solve(challenge)
|
Solve(challenge challenge, domain string)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Client is the user-friendy way to ACME
|
// Client is the user-friendy way to ACME
|
||||||
|
|
|
@ -6,6 +6,6 @@ func (s *dvsniChallenge) CanSolve() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *dvsniChallenge) Solve(challenge challenge) {
|
func (s *dvsniChallenge) Solve(challenge challenge, domain string) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,5 +7,6 @@ func (s *simpleHTTPChallenge) CanSolve() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *simpleHTTPChallenge) Solve(challenge challenge) {
|
func (s *simpleHTTPChallenge) Solve(challenge challenge) {
|
||||||
|
func (s *simpleHTTPChallenge) Solve(chlng challenge, domain string) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue