summaryrefslogtreecommitdiff
path: root/security/pgpin/files/patch-crypto.c
blob: 1c2317c409fe1052a3385d9e19439dd2b737d3a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;