From ac0883b44c37dac955c39e9c43b960201836da09 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 21 Jan 2016 08:52:48 +0100 Subject: better name --- desire.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desire.go') diff --git a/desire.go b/desire.go index 3b4a1f1..6c5a163 100644 --- a/desire.go +++ b/desire.go @@ -96,7 +96,7 @@ func (d *Desire) CSR() (string, error) { return base64.RawURLEncoding.EncodeToString(der), nil } -func (d Desire) satisficed(c []Challenge, com []int) bool { +func (d Desire) supported(c []Challenge, com []int) bool { for _, n := range com { if _, ok := d.solver[c[n].Type]; !ok { return false @@ -108,7 +108,7 @@ func (d Desire) satisficed(c []Challenge, com []int) bool { func (d Desire) pick(a *Authorization) []Challenge { var c []Challenge for _, com := range a.Combinations { - if d.satisficed(a.Challenges, com) { + if d.supported(a.Challenges, com) { for _, n := range com { ch := a.Challenges[n] ch.Solver = d.solver[ch.Type] -- cgit v1.2.3