changeset befc5cb2a1f1 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=befc5cb2a1f1
description: Tiny fixups for the SCRAM-SHA-1
diffstat:
src/common/xmpp/auth_nb.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 45ddc3ed41bf -r befc5cb2a1f1 src/common/xmpp/auth_nb.py
--- a/src/common/xmpp/auth_nb.py Thu Feb 25 13:02:28 2010 +0200
+++ b/src/common/xmpp/auth_nb.py Thu Feb 25 13:10:35 2010 +0200
@@ -116,8 +116,7 @@
return dict_
def scram_parse(chatter):
- stuff = dict(s.split('=', 1) for s in chatter.split(','))
- return stuff
+ return dict(s.split('=', 1) for s in chatter.split(','))
class SASL(PlugIn):
"""
@@ -334,7 +333,7 @@
return hmac.HMAC(key=k, msg=s, digestmod=hashfn).digest()
def XOR(x, y):
- r = [chr(ord(px) ^ ord(py)) for px, py in zip(x, y)]
+ r = (chr(ord(px) ^ ord(py)) for px, py in zip(x, y))
return ''.join(r)
def Hi(s, salt, iters):
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits