Accepting request 571491 from home:oertel:branches:security

- cleaner solution for the endian detection issue:
  include the proper header file

OBS-URL: https://build.opensuse.org/request/show/571491
OBS-URL: https://build.opensuse.org/package/show/security/sha1collisiondetection?expand=0&rev=12
This commit is contained in:
Andreas Stieger 2018-01-31 16:52:03 +00:00 committed by Git OBS Bridge
parent 109b7cfb37
commit 783082a9e3
2 changed files with 13 additions and 7 deletions

View File

@ -1,10 +1,10 @@
--- 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))
@@ -9,6 +9,7 @@
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
+#include <endian.h>
#include "sha1.h"
#include "ubc_check.h"

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 31 17:48:45 CET 2018 - ro@suse.de
- cleaner solution for the endian detection issue:
include the proper header file
-------------------------------------------------------------------
Wed Jan 31 17:33:48 CET 2018 - ro@suse.de