------------------------------------------------------------
revno: 6676
committer: Barry Warsaw <[email protected]>
branch nick: 64bit
timestamp: Thu 2009-01-29 14:06:24 -0500
message:
Fix 64 bit incompatibility.
modified:
src/mailman/passwords.py
=== modified file 'src/mailman/passwords.py'
--- src/mailman/passwords.py 2009-01-17 02:04:21 +0000
+++ src/mailman/passwords.py 2009-01-29 19:06:24 +0000
@@ -146,12 +146,12 @@
h = hmac.new(password, None, hashlib.sha1)
prf = h.copy()
prf.update(salt + b'\x00\x00\x00\x01')
- T = U = array(b'l', prf.digest())
+ T = U = array(b'i', prf.digest())
while iterations:
prf = h.copy()
prf.update(U.tostring())
- U = array(b'l', prf.digest())
- T = array(b'l', (t ^ u for t, u in zip(T, U)))
+ U = array(b'i', prf.digest())
+ T = array(b'i', (t ^ u for t, u in zip(T, U)))
iterations -= 1
return T.tostring()
--
Primary development focus
https://code.launchpad.net/~mailman-coders/mailman/3.0
Your team Mailman Checkins is subscribed to branch lp:mailman.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/3.0/+edit-subscription.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org