- Update to version 1.4.1
- GC patch applied upstream Reported by: portscout
This commit is contained in:
parent
cf01a81b07
commit
666900e91d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=560754
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= rhash
|
||||
PORTVERSION= 1.4.0
|
||||
PORTVERSION= 1.4.1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= SF
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
@ -1,5 +1,5 @@
|
||||
TIMESTAMP = 1594834294
|
||||
SHA256 (rhash-1.4.0-src.tar.gz) = 2ea39540f5c580da0e655f7b483c19e0d31506aed4202d88e8459fa7aeeb8861
|
||||
SIZE (rhash-1.4.0-src.tar.gz) = 406433
|
||||
TIMESTAMP = 1610013545
|
||||
SHA256 (rhash-1.4.1-src.tar.gz) = 430c812733e69b78f07ce30a05db69563450e41e217ae618507a4ce2e144a297
|
||||
SIZE (rhash-1.4.1-src.tar.gz) = 413274
|
||||
SHA256 (rhash-1.3.2.patch) = 9aeeb0d89f0203429a6f5433e7dd5fd4b621b34bc42fb6d5d32ede6279c990b0
|
||||
SIZE (rhash-1.3.2.patch) = 9021
|
||||
|
@ -1,60 +0,0 @@
|
||||
--- librhash/plug_openssl.c.orig 2019-12-14 16:52:11 UTC
|
||||
+++ librhash/plug_openssl.c
|
||||
@@ -18,10 +18,15 @@
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <openssl/opensslconf.h>
|
||||
-#include <openssl/md4.h>
|
||||
#include <openssl/md5.h>
|
||||
#include <openssl/sha.h>
|
||||
|
||||
+#ifndef OPENSSL_NO_MD4
|
||||
+# include <openssl/md4.h>
|
||||
+# define PLUGIN_MD4 RHASH_MD4
|
||||
+#else
|
||||
+# define PLUGIN_MD4 0
|
||||
+#endif
|
||||
#ifndef OPENSSL_NO_RIPEMD
|
||||
# include <openssl/ripemd.h>
|
||||
# define PLUGIN_RIPEMD160 RHASH_RIPEMD160
|
||||
@@ -48,7 +53,7 @@
|
||||
|
||||
#define OPENSSL_DEFAULT_HASH_MASK (RHASH_MD5 | RHASH_SHA1 | \
|
||||
RHASH_SHA224 | RHASH_SHA256 | RHASH_SHA384 | RHASH_SHA512)
|
||||
-#define PLUGIN_SUPPORTED_HASH_MASK (RHASH_MD4 | RHASH_MD5 | RHASH_SHA1 | \
|
||||
+#define PLUGIN_SUPPORTED_HASH_MASK (PLUGIN_MD4 | RHASH_MD5 | RHASH_SHA1 | \
|
||||
RHASH_SHA224 | RHASH_SHA256 | RHASH_SHA384 | RHASH_SHA512 | \
|
||||
PLUGIN_RIPEMD160 | PLUGIN_WHIRLPOOL)
|
||||
|
||||
@@ -89,7 +94,9 @@ OS_METHOD(WHIRLPOOL);
|
||||
CALL_FINAL(name, result, (CTX_TYPE*)ctx); \
|
||||
}
|
||||
|
||||
+#ifndef OPENSSL_NO_MD4
|
||||
WRAP_FINAL(MD4)
|
||||
+#endif
|
||||
WRAP_FINAL(MD5)
|
||||
WRAP_FINAL2(SHA1, SHA_CTX)
|
||||
WRAP_FINAL2(SHA224, SHA256_CTX)
|
||||
@@ -114,7 +121,11 @@ rhash_info info_sslwhpl = { RHASH_WHIRLPOOL, 0, 64, "W
|
||||
|
||||
/* The table of supported OpenSSL hash functions */
|
||||
rhash_hash_info rhash_openssl_methods[] = {
|
||||
+#ifndef OPENSSL_NO_MD4
|
||||
{ &info_md4, sizeof(MD4_CTX), offsetof(MD4_CTX, A), HASH_INFO_METHODS(MD4) }, /* 128 bit */
|
||||
+#else
|
||||
+ { 0, 0, 0, 0, 0, 0, 0},
|
||||
+#endif
|
||||
{ &info_md5, sizeof(MD5_CTX), offsetof(MD5_CTX, A), HASH_INFO_METHODS(MD5) }, /* 128 bit */
|
||||
{ &info_sha1, sizeof(SHA_CTX), offsetof(SHA_CTX, h0), HASH_INFO_METHODS(SHA1) }, /* 160 bit */
|
||||
{ &info_sha224, sizeof(SHA256_CTX), offsetof(SHA256_CTX, h), HASH_INFO_METHODS(SHA224) }, /* 224 bit */
|
||||
@@ -187,7 +198,9 @@ static int load_openssl_runtime(void)
|
||||
|
||||
if (handle == NULL) return 0; /* could not load OpenSSL */
|
||||
|
||||
+#ifndef OPENSSL_NO_MD4
|
||||
LOAD_ADDR(0, MD4)
|
||||
+#endif
|
||||
LOAD_ADDR(1, MD5);
|
||||
LOAD_ADDR(2, SHA1);
|
||||
LOAD_ADDR(3, SHA224);
|
Loading…
Reference in New Issue
Block a user