util/sasl_cyrus.lua

changeset 3363
a4bb658d3fcb
parent 3299
4448789c19ca
child 3365
32dc830d976c
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;

mercurial