summaryrefslogtreecommitdiff
path: root/security/pgpin/files/patch-crypto.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-12-08 19:51:50 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-12-08 19:51:50 +0000
commitcbb3e83c0835c1a7f98ee9e96ddca5507ee5df31 (patch)
treeccef1bb031c3bc9b3fb0acb7e7823b8dab7aa997 /security/pgpin/files/patch-crypto.c
parentFix WWW link. (diff)
- regression test on panther successfull
Notes
Notes: svn path=/head/; revision=71432
Diffstat (limited to 'security/pgpin/files/patch-crypto.c')
-rw-r--r--security/pgpin/files/patch-crypto.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/security/pgpin/files/patch-crypto.c b/security/pgpin/files/patch-crypto.c
new file mode 100644
index 000000000000..1c2317c409fe
--- /dev/null
+++ b/security/pgpin/files/patch-crypto.c
@@ -0,0 +1,25 @@
+--- crypto.c.orig Tue Jan 20 09:54:51 1998
++++ crypto.c Sun Dec 8 11:43:11 2002
+@@ -181,7 +181,7 @@
+ if (timestamp != NULL) {
+ /* first, fill array in external byte order: */
+ put_word32(t, timestamp);
+- convert_byteorder(timestamp,4);
++ convert_byteorder(timestamp,SIZEOF_TIMESTAMP);
+ /* convert to internal byteorder */
+ }
+
+@@ -850,11 +850,11 @@
+ LANG("\n\007Error: System clock/calendar is set wrong.\n"));
+ return -1;
+ }
+- convert_byteorder(timestamp,4); /* convert to external form */
++ convert_byteorder(timestamp,SIZEOF_TIMESTAMP); /* convert to external form */
+
+ /* Finish off message digest calculation with this information */
+ MD_addbuffer (MD, &class, 1, 0);
+- MD_addbuffer (MD, timestamp, 4, md5buf);
++ MD_addbuffer (MD, timestamp, SIZEOF_TIMESTAMP, md5buf);
+ /* We wrote the digest to a static variable because we want to keep it around
+ for random number generation later. Also make a note of that fact. */
+ already_have_md5 = 1;