summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-04-13 00:04:21 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2021-04-13 00:05:17 +0100
commite0bdceebac52482046dc9291ecc1bbdbbdb55f48 (patch)
tree07a5c0244ffa23f197d198a3c4d13fe8597f08b3 /dev-util/radare2/files
parentnet-p2p/vuze: eutils->edos2unix (diff)
downloadgentoo-e0bdceebac52482046dc9291ecc1bbdbbdb55f48.tar.gz
gentoo-e0bdceebac52482046dc9291ecc1bbdbbdb55f48.tar.bz2
gentoo-e0bdceebac52482046dc9291ecc1bbdbbdb55f48.zip
dev-util/radare2: bump up to 5.2.0
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-util/radare2/files')
-rw-r--r--dev-util/radare2/files/radare2-5.2.0-ssl-build.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-util/radare2/files/radare2-5.2.0-ssl-build.patch b/dev-util/radare2/files/radare2-5.2.0-ssl-build.patch
new file mode 100644
index 000000000000..8701adb62664
--- /dev/null
+++ b/dev-util/radare2/files/radare2-5.2.0-ssl-build.patch
@@ -0,0 +1,54 @@
+From 7273429e4ba85318f0da2ae03ecc154834aaa73b Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyfox@gentoo.org>
+Date: Mon, 12 Apr 2021 23:48:09 +0100
+Subject: [PATCH] state.c: fix --with-openssl build
+
+Build failure happens at:
+
+```
+$ ./configure --with-openssl && make
+....
+state.c: In function 'r_hash_do_hmac_sha256':
+state.c:155:19: error: 'r_SHA256_BLOCK_LENGTH' undeclared (first use in this function); did you mean 'SHA256_BLOCK_LENGTH'?
+ 155 | ut8 bskey[r_SHA256_BLOCK_LENGTH]; // block-sized key
+ | ^~~~~~~~~~~~~~~~~~~~~
+ | SHA256_BLOCK_LENGTH
+```
+
+The change defines r2_.* aliases for openssl implementation.
+---
+ libr/hash/state.c | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
+
+diff --git a/libr/hash/state.c b/libr/hash/state.c
+index 6f3ae6b4c..93adafc81 100644
+--- a/libr/hash/state.c
++++ b/libr/hash/state.c
+@@ -7,6 +7,24 @@
+ #include <openssl/md4.h>
+ #include <openssl/md5.h>
+ #include <openssl/sha.h>
++
++# define r_SHA256_BLOCK_LENGTH SHA256_BLOCK_LENGTH
++
++# define r_SHA1_Init SHA1_Init
++# define r_SHA1_Update SHA1_Update
++# define r_SHA1_Final SHA1_Final
++
++# define r_SHA256_Init SHA256_Init
++# define r_SHA256_Update SHA256_Update
++# define r_SHA256_Final SHA256_Final
++
++# define r_SHA384_Init SHA384_Init
++# define r_SHA384_Update SHA384_Update
++# define r_SHA384_Final SHA384_Final
++
++# define r_SHA512_Init SHA512_Init
++# define r_SHA512_Update SHA512_Update
++# define r_SHA512_Final SHA512_Final
+ #else
+ #include "md4.h"
+ #include "md5.h"
+--
+2.31.1
+