Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cr-marcstevens/sha1collisiondetection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Shumow <shumow@gmail.com>2018-08-02 21:33:35 +0300
committerGitHub <noreply@github.com>2018-08-02 21:33:35 +0300
commit232357eb2ea0397388254a4b188333a227bf5b10 (patch)
tree8b0c2e52032b97635239cd308e211f02b6a226f0
parentc3e1304ea308f90866c6cdc450095575063fbbf5 (diff)
parent3d6b0e529a1e42bbbe1086c76e23f625c78fc4e1 (diff)
Merge pull request #45 from avar/aix-big-endian-detection
Big Endian Detection: Add a whitelist of always BE OSs
-rw-r--r--lib/sha1.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/sha1.c b/lib/sha1.c
index 25eded1..df0630b 100644
--- a/lib/sha1.c
+++ b/lib/sha1.c
@@ -93,13 +93,23 @@
#define SHA1DC_BIGENDIAN
/* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> */
+#elif (defined(_AIX))
+
+/*
+ * Defines Big Endian on a whitelist of OSs that are known to be Big
+ * Endian-only. See
+ * https://public-inbox.org/git/93056823-2740-d072-1ebd-46b440b33d7e@felt.demon.nl/
+ */
+#define SHA1DC_BIGENDIAN
+
+/* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <os whitelist> */
#elif defined(SHA1DC_ON_INTEL_LIKE_PROCESSOR)
/*
* As a last resort before we do anything else we're not 100% sure
* about below, we blacklist specific processors here. We could add
* more, see e.g. https://wiki.debian.org/ArchitectureSpecificsMemo
*/
-#else /* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <processor blacklist> */
+#else /* Not under GCC-alike or glibc or *BSD or newlib or <processor whitelist> or <os whitelist> or <processor blacklist> */
/* We do nothing more here for now */
/*#error "Uncomment this to see if you fall through all the detection"*/