util/sasl.lua

branch
sasl
changeset 2181
e92339c48ee6
parent 2180
0d1740f7b6e8
child 2182
1112871916eb
equal deleted inserted replaced
2180:0d1740f7b6e8 2181:e92339c48ee6
100 return array.collect(keys(mechanisms)); 100 return array.collect(keys(mechanisms));
101 end 101 end
102 102
103 -- select a mechanism to use 103 -- select a mechanism to use
104 function method:select(mechanism) 104 function method:select(mechanism)
105 if self.mech_i then
106 return false;
107 end
108
105 self.mech_i = mechanisms[mechanism] 109 self.mech_i = mechanisms[mechanism]
106 if self.mech_i == nil then 110 if self.mech_i == nil then
107 return false; 111 return false;
108 end 112 end
109 return true; 113 return true;

mercurial