util/sasl/scram.lua

changeset 2265
7fe644057dc2
parent 2255
92e329e1cd99
child 2267
6e662e4f7ab2
equal deleted inserted replaced
2264:49580a13f71e 2265:7fe644057dc2
68 return false 68 return false
69 end 69 end
70 end 70 end
71 71
72 -- replace =2D with , and =3D with = 72 -- replace =2D with , and =3D with =
73 username:gsub("=2D", ","); 73 username = username:gsub("=2D", ",");
74 username:gsub("=3D", "="); 74 username = username:gsub("=3D", "=");
75 75
76 -- apply SASLprep 76 -- apply SASLprep
77 username = saslprep(username); 77 username = saslprep(username);
78 return username; 78 return username;
79 end 79 end

mercurial