Mercurial > prosody-hg
comparison util/sasl.lua @ 3363:a4bb658d3fcb
SASL: Simplified sasl_handler:mechanisms() to return a set, and not an array.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Wed, 14 Jul 2010 19:56:57 +0500 |
| parents | c713fa2ba80c |
| children | 6a5d77924949 |
comparison
equal
deleted
inserted
replaced
| 3362:90bf162303f3 | 3363:a4bb658d3fcb |
|---|---|
| 97 end | 97 end |
| 98 end | 98 end |
| 99 end | 99 end |
| 100 end | 100 end |
| 101 self["possible_mechanisms"] = mechanisms; | 101 self["possible_mechanisms"] = mechanisms; |
| 102 return array.collect(keys(mechanisms)); | 102 return mechanisms; |
| 103 end | 103 end |
| 104 | 104 |
| 105 -- select a mechanism to use | 105 -- select a mechanism to use |
| 106 function method:select(mechanism) | 106 function method:select(mechanism) |
| 107 if self.mech_i then | 107 if self.mech_i then |
