summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-09-20 12:51:39 +0000
committerUlrich Müller <ulm@gentoo.org>2008-09-20 12:51:39 +0000
commitf69082acb05fa2013baed6e919b15a65b6b34aaa (patch)
tree01cb9c2056c402cd8d4ec2340c131387d4e75939 /sys-auth
parentstable amd64, bug 217505 (diff)
downloadgentoo-2-f69082acb05fa2013baed6e919b15a65b6b34aaa.tar.gz
gentoo-2-f69082acb05fa2013baed6e919b15a65b6b34aaa.tar.bz2
gentoo-2-f69082acb05fa2013baed6e919b15a65b6b34aaa.zip
Fix the endianness issue also for the bundled sha1 functions.
(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.patch17
1 files changed, 17 insertions, 0 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 99cb08e3b8a5..f799bf4e25de 100644
--- a/sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch
+++ b/sys-auth/otpcalc/files/otpcalc-0.97-sha1-byteorder.patch
@@ -10,6 +10,23 @@
+ message[i] = digest[(i&4)+3-(i&3)];
}
+--- otpCalc-0.97-orig/sha1.h 2001-06-11 10:13:15.000000000 +0200
++++ otpCalc-0.97/sha1.h 2008-09-20 14:44:15.000000000 +0200
+@@ -1,3 +1,5 @@
++#include "config.h"
++
+ #ifndef i386
+ typedef long int int64;
+ typedef unsigned long int uint64;
+@@ -28,7 +30,7 @@
+
+ #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
+
+-#ifdef WORDS_BIGENDIAN
++#ifndef WORDS_BIGENDIAN
+ #define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
+ |(rol(block->l[i],8)&0x00FF00FF))
+ #else
--- otpCalc-0.97-orig/otpCalc.man 2008-09-17 22:23:00.000000000 +0200
+++ otpCalc-0.97/otpCalc.man 2008-09-17 22:23:47.000000000 +0200
@@ -47,9 +47,6 @@