Software /
code /
prosody
Comparison
util/sasl_cyrus.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 |
parent | 3299:4448789c19ca |
child | 3365:32dc830d976c |
comparison
equal
deleted
inserted
replaced
3362:90bf162303f3 | 3363:a4bb658d3fcb |
---|---|
133 local cyrus_mechs = cyrussasl.listmech(self.cyrus, nil, "", " ", "") | 133 local cyrus_mechs = cyrussasl.listmech(self.cyrus, nil, "", " ", "") |
134 for w in s_gmatch(cyrus_mechs, "[^ ]+") do | 134 for w in s_gmatch(cyrus_mechs, "[^ ]+") do |
135 mechanisms[w] = true; | 135 mechanisms[w] = true; |
136 end | 136 end |
137 self.mechs = mechanisms | 137 self.mechs = mechanisms |
138 return array.collect(keys(mechanisms)); | 138 return mechanisms; |
139 end | 139 end |
140 | 140 |
141 -- select a mechanism to use | 141 -- select a mechanism to use |
142 function method:select(mechanism) | 142 function method:select(mechanism) |
143 self.mechanism = mechanism; | 143 self.mechanism = mechanism; |