mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
While trying to upgrade devel/tcllib several test failures were detected
in the RIPEMD128 implementation. Turns out, the problem was fixed a few months ago by the TRF author in CVS. This commit adds a patch and bumps portrevision. Although the same problem existed in the TRF's RIPEMD160 implementation, it did not affect this port, because it uses the OpenSSL's (or -lmd's) implementations of all digests -- except those, which are considered obsolete and no longer shipped. Like rmd128. Thanks to: Denis Shaposhnikov
This commit is contained in:
parent
221c84a513
commit
8f44911ca6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161733
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= Trf
|
||||
PORTVERSION= 2.1p2
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= devel tcl${TCL_VER:S/.//}
|
||||
MASTER_SITES= http://www.oche.de/~akupries/soft/trf/download/
|
||||
PKGNAMEPREFIX= tcl-
|
||||
|
24
devel/tcl-trf/files/patch-rmd128
Normal file
24
devel/tcl-trf/files/patch-rmd128
Normal file
@ -0,0 +1,24 @@
|
||||
Patch obtained from the TRF's CVS... Many thanks to Denis Shaposhnikov
|
||||
for finding it.
|
||||
|
||||
TRF's RIPEMD160 implementation suffered from the same problem, but this
|
||||
port does not use it.
|
||||
|
||||
-mi
|
||||
|
||||
--- generic/rmd128.c Wed Aug 9 15:13:18 2000
|
||||
+++ generic/rmd128.c Mon May 8 12:52:04 2006
|
||||
@@ -46,5 +46,5 @@
|
||||
typedef struct ripemd_context {
|
||||
dword state [5]; /* state variables of ripemd-128 */
|
||||
- byte buf [CHUNK_SIZE]; /* buffer of 15-dword's */
|
||||
+ byte buf [CHUNK_SIZE]; /* buffer of 16-dword's */
|
||||
byte byteCount; /* number of bytes in buffer */
|
||||
dword lowc; /* lower half of a 64bit counter */
|
||||
@@ -235,5 +235,5 @@
|
||||
} /* k == CHUNK_SIZE => internal buffer was empty, so skip it entirely */
|
||||
|
||||
- while (bufLen > CHUNK_SIZE) {
|
||||
+ while (bufLen >= CHUNK_SIZE) {
|
||||
CountLength (ctx, CHUNK_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user