summaryrefslogtreecommitdiff
path: root/net/v6eval/files/patch-bin_dhgen_dhgen.cc
blob: 3e715de32e96f1b7c24542ef96a1a9feb5c274ce (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- bin/dhgen/dhgen.cc.orig	2013-06-16 10:57:08.000000000 +0900
+++ bin/dhgen/dhgen.cc	2013-06-16 10:59:01.000000000 +0900
@@ -233,21 +233,21 @@
 	}
 
 #ifdef TAHI
-	printf("log:DHGen_Results                   (length:%i)\n",
+	printf("log:DHGen_Results                   (length:%zu)\n",
 		xflag?
-			BN_num_bytes(pDH->pub_key) +
-				BN_num_bytes(pDH->priv_key):
+			(size_t)(BN_num_bytes(pDH->pub_key) +
+				BN_num_bytes(pDH->priv_key)):
 			strlen(pPubKey) + strlen(pPrivKey));
 #else	// TAHI
-	printf("log:DHGen_Results                   (length:%i)\n", strlen(pPubKey) + strlen(pPrivKey));
+	printf("log:DHGen_Results                   (length:%zu)\n", strlen(pPubKey) + strlen(pPrivKey));
 #endif	// TAHI
 #ifdef TAHI
-	printf("log:| Public_Key                      (length:%i)\n",
+	printf("log:| Public_Key                      (length:%zu)\n",
 		xflag?
-			BN_num_bytes(pDH->pub_key):
+			(size_t)BN_num_bytes(pDH->pub_key):
 			strlen(pPubKey));
 #else	// TAHI
-	printf("log:| Public_Key                      (length:%i)\n", strlen(pPubKey));
+	printf("log:| Public_Key                      (length:%zu)\n", strlen(pPubKey));
 #endif	// TAHI
 #ifdef TAHI
 	xflag? xPrintResult(pPubKey): PrintResult(pPubKey);
@@ -255,12 +255,12 @@
 	PrintResult(pPubKey);
 #endif	// TAHI
 #ifdef TAHI
-	printf("log:| Private_Key                     (length:%i)\n",
+	printf("log:| Private_Key                     (length:%zu)\n",
 		xflag?
-			BN_num_bytes(pDH->priv_key):
+			(size_t)BN_num_bytes(pDH->priv_key):
 			strlen(pPrivKey));
 #else	// TAHI
-	printf("log:| Private_Key                     (length:%i)\n", strlen(pPrivKey));
+	printf("log:| Private_Key                     (length:%zu)\n", strlen(pPrivKey));
 #endif	// TAHI
 #ifdef TAHI
 	xflag? xPrintResult(pPrivKey): PrintResult(pPrivKey);