diff options
author | Ulrich Müller <ulm@gentoo.org> | 2008-09-21 20:33:00 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2008-09-21 20:33:00 +0000 |
commit | 51346d0f0f4adb42e7990261855084e1326419cf (patch) | |
tree | 62e6bc409272216536ec3d8f3656191860e8aa93 /sys-auth | |
parent | Version bump. (diff) | |
download | gentoo-2-51346d0f0f4adb42e7990261855084e1326419cf.tar.gz gentoo-2-51346d0f0f4adb42e7990261855084e1326419cf.tar.bz2 gentoo-2-51346d0f0f4adb42e7990261855084e1326419cf.zip |
Fix patch, xor is more elegant.
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686)
Diffstat (limited to 'sys-auth')
-rw-r--r-- | sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch b/sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch index f799bf4e25de..e7e01019f8e0 100644 --- a/sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch +++ b/sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch @@ -7,7 +7,7 @@ - memcpy(message, digest, 8); + /* Fix byte order, as required by RFC 2289 Appendix A */ + for (i = 0; i < 8; i++) -+ message[i] = digest[(i&4)+3-(i&3)]; ++ message[i] = digest[i^3]; } --- otpCalc-0.97-orig/sha1.h 2001-06-11 10:13:15.000000000 +0200 |