From 52b76e132728a3a0e13436f09f10391aec3e259b Mon Sep 17 00:00:00 2001 From: Mikhail Teterin Date: Mon, 13 Jul 2009 05:30:15 +0000 Subject: Resurrect this port from the Attic based on the new version from the author. As before, we modify the author's code to use either OpenSSL's -lcrypto or BSD's -lmd /directly/ instead of compiling the bundled definitions digests. We also link with -lz and -lbz2 instead of dlopen-ing them at run-time. --- devel/tcl-trf/files/patch-haval | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 devel/tcl-trf/files/patch-haval (limited to 'devel/tcl-trf/files/patch-haval') diff --git a/devel/tcl-trf/files/patch-haval b/devel/tcl-trf/files/patch-haval new file mode 100644 index 000000000000..a7647c497918 --- /dev/null +++ b/devel/tcl-trf/files/patch-haval @@ -0,0 +1,25 @@ +--- generic/haval.c 2009-06-18 00:54:43.000000000 -0400 ++++ generic/haval.c 2009-07-13 00:03:06.000000000 -0400 +@@ -48,6 +48,6 @@ + static void MDHaval_Start _ANSI_ARGS_ ((VOID* context)); + static void MDHaval_Update _ANSI_ARGS_ ((VOID* context, unsigned int character)); +-static void MDHaval_UpdateBuf _ANSI_ARGS_ ((VOID* context, unsigned char* buffer, int bufLen)); +-static void MDHaval_Final _ANSI_ARGS_ ((VOID* context, VOID* digest)); ++static void MDHaval_UpdateBuf _ANSI_ARGS_ ((VOID* context, unsigned char* buffer, size_t bufLen)); ++static void MDHaval_Final _ANSI_ARGS_ ((VOID* digest, VOID* context)); + + /* +@@ -169,5 +169,5 @@ + VOID* context; + unsigned char* buffer; +-int bufLen; ++size_t bufLen; + { + haval_hash ((CTX_TYPE*) context, (unsigned char*) buffer, bufLen); +@@ -194,5 +194,5 @@ + + static void +-MDHaval_Final (context, digest) ++MDHaval_Final (digest, context) + VOID* context; + VOID* digest; -- cgit v1.2.3