From 18690c87cba738d8e3a1c4b8b5a6640fc6e965d3 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Tue, 30 Mar 2021 21:06:17 +0000 Subject: MFH: r569585 Fix build with nettle 3.7.2 PR: 254355 Submitted by: mandree --- net/libstorj/files/patch-src_crypto.c | 11 +++++++++++ net/libstorj/files/patch-src_crypto.h | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 net/libstorj/files/patch-src_crypto.c create mode 100644 net/libstorj/files/patch-src_crypto.h diff --git a/net/libstorj/files/patch-src_crypto.c b/net/libstorj/files/patch-src_crypto.c new file mode 100644 index 000000000000..d1b0a2a1d3e2 --- /dev/null +++ b/net/libstorj/files/patch-src_crypto.c @@ -0,0 +1,11 @@ +--- src/crypto.c.orig 2018-05-10 18:45:47 UTC ++++ src/crypto.c +@@ -216,7 +216,7 @@ int sha512_of_str(const uint8_t *str, int str_len, uin + return 0; + } + +-void pbkdf2_hmac_sha512 ( ++void off_pbkdf2_hmac_sha512 ( + unsigned key_length, + const uint8_t *key, + unsigned iterations, diff --git a/net/libstorj/files/patch-src_crypto.h b/net/libstorj/files/patch-src_crypto.h new file mode 100644 index 000000000000..5212609b064f --- /dev/null +++ b/net/libstorj/files/patch-src_crypto.h @@ -0,0 +1,11 @@ +--- src/crypto.h.orig 2018-05-10 18:45:47 UTC ++++ src/crypto.h +@@ -40,7 +40,7 @@ int double_ripemd160sha256(uint8_t *data, uint64_t dat + int double_ripemd160sha256_as_string(uint8_t *data, uint64_t data_size, + char **digest); + +-void pbkdf2_hmac_sha512(unsigned key_length, ++void off_pbkdf2_hmac_sha512(unsigned key_length, + const uint8_t *key, + unsigned iterations, + unsigned salt_length, const uint8_t *salt, -- cgit v1.2.3