8
0
forked from pool/jitterentropy
Files
jitterentropy/jitterentropy-split-internal-header.patch
Marcus Meissner 3fc7ac6a99 - Update to 3.6.3:
* Correct time stamp processing on AIX
  * Use high-resolution time stamp on Apple Silicon
  * GCD power-up test: consider OSR
  * Remove patches fixed in the update:
    - jitterentropy-fix-a-stack-corruption-on-s390x.patch
  * Rebase patches:
    - jitterentropy-split-internal-header.patch
    - jitterentropy-with-debug.patch
- Update to 3.6.2:
  * Fix RCT re-initialization in jent_read_entropy_safe
  * simplify test code
  * improve keyword portability
- Update to 3.6.1:
  * Add more test code
  * Add support for SunPRO compiler
  * Fix compilation on OpenBSD by replacing sed with tr
  * internal timer: Add support for Apple
  * Various small fixes to compilation to imporve portability
- Update to 3.6.0:
  * Remove bi-modal behavior of conditioning function
  * Make jent_read_entropy_safe safer by retrying the health test
  * Move the version information to make them available at compile time
- Update to 3.5.0:
  * add distinction between intermittent and permanent health failure
  * add compile time option to allow configuring a mask to reduce the
    size of the time stamp used for the APT

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jitterentropy?expand=0&rev=19
2025-04-30 09:11:57 +00:00

42 lines
1.3 KiB
Diff

Index: jitterentropy-library-3.6.3/jitterentropy.h
===================================================================
--- jitterentropy-library-3.6.3.orig/jitterentropy.h
+++ jitterentropy-library-3.6.3/jitterentropy.h
@@ -42,6 +42,10 @@
#ifndef _JITTERENTROPY_H
#define _JITTERENTROPY_H
+#include <unistd.h>
+#include <errno.h>
+#include <stdint.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -162,11 +166,13 @@ extern "C" {
* Jitter RNG State Definition Section
***************************************************************************/
+#ifdef __JITTERENTROPY_INTERNAL
#if defined(_MSC_VER)
#include "arch/jitterentropy-base-windows.h"
#else
#include "jitterentropy-base-user.h"
#endif
+#endif
#define JENT_SHA3_256_SIZE_DIGEST_BITS 256
#define JENT_SHA3_256_SIZE_DIGEST (JENT_SHA3_256_SIZE_DIGEST_BITS >> 3)
Index: jitterentropy-library-3.6.3/Makefile
===================================================================
--- jitterentropy-library-3.6.3.orig/Makefile
+++ jitterentropy-library-3.6.3/Makefile
@@ -9,6 +9,7 @@ LDFLAGS +=-Wl,-z,relro,-z,now -lpthread
# Enable internal timer support
CFLAGS += -DJENT_CONF_ENABLE_INTERNAL_TIMER
+CFLAGS += -D__JITTERENTROPY_INTERNAL
GCCVERSIONFORMAT := $(shell echo `$(CC) -dumpversion | tr '.' '\n' | wc -l`)
ifeq "$(GCCVERSIONFORMAT)" "3"