forked from pool/sha1collisiondetection
Andreas Stieger
109b7cfb37
- add sha1collisiondetection-endian_detection.patch fix detection of endianness at compile time OBS-URL: https://build.opensuse.org/request/show/571486 OBS-URL: https://build.opensuse.org/package/show/security/sha1collisiondetection?expand=0&rev=11
11 lines
529 B
Diff
11 lines
529 B
Diff
--- lib/sha1.c
|
|
+++ lib/sha1.c
|
|
@@ -28,6 +28,7 @@
|
|
#if (!defined SHA1DC_FORCE_LITTLEENDIAN) && \
|
|
((defined(__BYTE_ORDER) && (__BYTE_ORDER == __BIG_ENDIAN)) || \
|
|
(defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __BIG_ENDIAN__)) || \
|
|
+ (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)) || \
|
|
defined(__BIG_ENDIAN__) || defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || \
|
|
defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__) || defined(SHA1DC_FORCE_BIGENDIAN))
|
|
|