summaryrefslogtreecommitdiffstats
path: root/eBones
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1995-09-15 06:18:56 +0000
committergibbs <gibbs@FreeBSD.org>1995-09-15 06:18:56 +0000
commitaf49d3bfec070b8bd23f0b5389f2b58cabab7882 (patch)
tree66eb43a13817effb58b80a5717d9476352147078 /eBones
parent6669165a88a33e533902261fbb94ecc4f450ee84 (diff)
downloadFreeBSD-src-af49d3bfec070b8bd23f0b5389f2b58cabab7882.zip
FreeBSD-src-af49d3bfec070b8bd23f0b5389f2b58cabab7882.tar.gz
Fix the most blatant -Wall errors.
Diffstat (limited to 'eBones')
-rw-r--r--eBones/des/3cbc_enc.c10
-rw-r--r--eBones/des/3ecb_enc.c4
-rw-r--r--eBones/des/enc_read.c5
-rw-r--r--eBones/des/enc_writ.c7
-rw-r--r--eBones/des/rand_key.c5
5 files changed, 22 insertions, 9 deletions
diff --git a/eBones/des/3cbc_enc.c b/eBones/des/3cbc_enc.c
index 231cff5..1f64502 100644
--- a/eBones/des/3cbc_enc.c
+++ b/eBones/des/3cbc_enc.c
@@ -2,11 +2,16 @@
/* Copyright (C) 1993 Eric Young - see README for more details */
/*-
- * $Id: 3cbc_enc.c,v 1.2 1994/07/19 19:21:37 g89r4222 Exp $
+ * $Id: 3cbc_enc.c,v 1.1.1.1 1994/09/30 14:49:50 csgr Exp $
*/
#include "des_locl.h"
+void
+xp(a)
+unsigned char *a;
+{ int i; for(i=0; i<8; i++) printf("%02X",a[i]);printf("\n");}
+
int des_3cbc_encrypt(input,output,length,ks1,ks2,iv1,iv2,encrypt)
des_cblock *input;
des_cblock *output;
@@ -53,6 +58,3 @@ xp(output);
return(0);
}
-xp(a)
-unsigned char *a;
-{ int i; for(i=0; i<8; i++) printf("%02X",a[i]);printf("\n");}
diff --git a/eBones/des/3ecb_enc.c b/eBones/des/3ecb_enc.c
index 1081f9d..4bd2286 100644
--- a/eBones/des/3ecb_enc.c
+++ b/eBones/des/3ecb_enc.c
@@ -2,7 +2,7 @@
/* Copyright (C) 1993 Eric Young - see README for more details */
/*-
- * $Id: 3ecb_enc.c,v 1.2 1994/07/19 19:21:38 g89r4222 Exp $
+ * $Id: 3ecb_enc.c,v 1.1.1.1 1994/09/30 14:49:50 csgr Exp $
*/
#include "des_locl.h"
@@ -13,7 +13,7 @@ des_cblock *output;
des_key_schedule ks1,ks2;
int encrypt;
{
- register unsigned long l0,l1,t;
+ register unsigned long l0,l1;
register unsigned char *in,*out;
unsigned long ll[2];
diff --git a/eBones/des/enc_read.c b/eBones/des/enc_read.c
index 4c6cb9e..ffd3ba9 100644
--- a/eBones/des/enc_read.c
+++ b/eBones/des/enc_read.c
@@ -2,9 +2,12 @@
/* Copyright (C) 1993 Eric Young - see README for more details */
/*-
- * $Id: enc_read.c,v 1.1.1.1 1994/09/30 14:49:50 csgr Exp $
+ * $Id: enc_read.c,v 1.2 1995/05/30 06:40:11 rgrimes Exp $
*/
+#include <sys/types.h>
+#include <sys/uio.h>
+#include <unistd.h>
#include <errno.h>
#include "des_locl.h"
diff --git a/eBones/des/enc_writ.c b/eBones/des/enc_writ.c
index 00c8f63..e820e1f 100644
--- a/eBones/des/enc_writ.c
+++ b/eBones/des/enc_writ.c
@@ -2,9 +2,14 @@
/* Copyright (C) 1993 Eric Young - see README for more details */
/*-
- * $Id: enc_writ.c,v 1.1.1.1 1994/09/30 14:49:50 csgr Exp $
+ * $Id: enc_writ.c,v 1.2 1995/05/30 06:40:12 rgrimes Exp $
*/
+#include <sys/types.h>
+#include <sys/uio.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <time.h>
#include <errno.h>
#include "des_locl.h"
diff --git a/eBones/des/rand_key.c b/eBones/des/rand_key.c
index a202428..30369fe 100644
--- a/eBones/des/rand_key.c
+++ b/eBones/des/rand_key.c
@@ -2,9 +2,12 @@
/* Copyright (C) 1993 Eric Young - see README for more details */
/*-
- * $Id: rand_key.c,v 1.1.1.1 1994/09/30 14:49:51 csgr Exp $
+ * $Id: rand_key.c,v 1.2 1995/05/09 18:05:15 wollman Exp $
*/
+#include <sys/types.h>
+#include <sys/time.h>
+#include <unistd.h>
#include "des_locl.h"
int des_random_key(ret)
OpenPOWER on IntegriCloud