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; |