summaryrefslogtreecommitdiff
path: root/devel/tcl-trf/files/patch-sha
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2004-07-09 20:48:54 +0000
committerMikhail Teterin <mi@FreeBSD.org>2004-07-09 20:48:54 +0000
commit2923c0b122e9d7dd2def74a68742d1c894df96bc (patch)
tree7c797cdad50ec34be077a9a9e7bb67c121c6735c /devel/tcl-trf/files/patch-sha
parentMake the COMMENT and pkg-descr more descriptive of the (diff)
Explicitly include <sys/types.h> and <unistd.h> to fix the breakage on
recent -current. Fix warnings -- on x86, at least, the package now builds with ``-Wall -Werror''.
Notes
Notes: svn path=/head/; revision=113308
Diffstat (limited to 'devel/tcl-trf/files/patch-sha')
-rw-r--r--devel/tcl-trf/files/patch-sha22
1 files changed, 15 insertions, 7 deletions
diff --git a/devel/tcl-trf/files/patch-sha b/devel/tcl-trf/files/patch-sha
index 74979787b75d..3b8ee2891f3a 100644
--- a/devel/tcl-trf/files/patch-sha
+++ b/devel/tcl-trf/files/patch-sha
@@ -1,5 +1,5 @@
--- generic/sha.c Wed Aug 9 15:13:18 2000
-+++ generic/sha.c Fri Feb 8 11:22:17 2002
++++ generic/sha.c Fri Jul 9 16:28:57 2004
@@ -30,34 +30,6 @@
#include "transformInt.h"
@@ -37,7 +37,15 @@
+#include <sha.h>
/*
-@@ -76,9 +48,9 @@
+@@ -65,7 +37,5 @@
+ */
+
+-static void MDsha_Start _ANSI_ARGS_ ((VOID* context));
+ static void MDsha_Update _ANSI_ARGS_ ((VOID* context, unsigned int character));
+-static void MDsha_UpdateBuf _ANSI_ARGS_ ((VOID* context, unsigned char* buffer, int bufLen));
+ static void MDsha_Final _ANSI_ARGS_ ((VOID* context, VOID* digest));
+
+@@ -76,9 +46,9 @@
static Trf_MessageDigestDescription mdDescription = { /* THREADING: constant, read-only => safe */
"sha",
- sizeof (CTX_TYPE),
@@ -45,13 +53,13 @@
- MDsha_Start,
+ sizeof (SHA_CTX),
+ SHA_DIGEST_LENGTH,
-+ SHA_Init,
++ (Trf_MDStart *)SHA_Init,
MDsha_Update,
- MDsha_UpdateBuf,
-+ SHA_Update,
++ (Trf_MDUpdateBuf *)SHA_Update,
MDsha_Final,
NULL
-@@ -113,33 +85,4 @@
+@@ -113,33 +83,4 @@
*------------------------------------------------------*
*
- * MDsha_Start --
@@ -85,7 +93,7 @@
- *
* MDsha_Update --
*
-@@ -163,79 +106,7 @@
+@@ -163,79 +104,7 @@
unsigned int character;
{
- sha_trf_info* s = (sha_trf_info*) context;
@@ -167,7 +175,7 @@
+ SHA_Update ((SHA_CTX*)context, &buf, 1);
}
-@@ -264,26 +135,4 @@
+@@ -264,26 +133,4 @@
VOID* digest;
{
- sha_trf_info* s = (sha_trf_info*) context;