summaryrefslogtreecommitdiffstats
path: root/eBones/ext_srvtab/ext_srvtab.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1995-09-07 21:39:00 +0000
committermarkm <markm@FreeBSD.org>1995-09-07 21:39:00 +0000
commit2539acf77b018acd7416a9857a14c466e55cd7e8 (patch)
tree96ff3578d62372822240f11a1567e45b880f3910 /eBones/ext_srvtab/ext_srvtab.c
parenteed9438eb23b62f78af7685dc226228e2bf5c524 (diff)
downloadFreeBSD-src-2539acf77b018acd7416a9857a14c466e55cd7e8.zip
FreeBSD-src-2539acf77b018acd7416a9857a14c466e55cd7e8.tar.gz
Major cleanup of eBones code:
- Get all functions prototyped or at least defined before use. - Make code compile (Mostly) clean with -Wall set - Start to reduce the degree to which DES aka libdes is built in. - get all functions to the same uniform standard of definition: int foo(a, b) int a; int *b; { : } - fix numerous bugs exposed by above processes. Note - this replaces the previous work which used an unpopular function definition style.
Diffstat (limited to 'eBones/ext_srvtab/ext_srvtab.c')
-rw-r--r--eBones/ext_srvtab/ext_srvtab.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/eBones/ext_srvtab/ext_srvtab.c b/eBones/ext_srvtab/ext_srvtab.c
index 6b655c7..6f25013 100644
--- a/eBones/ext_srvtab/ext_srvtab.c
+++ b/eBones/ext_srvtab/ext_srvtab.c
@@ -5,12 +5,15 @@
* $Id: ext_srvtab.c,v 1.3 1995/07/18 16:35:55 mark Exp $
*/
+#if 0
#ifndef lint
static char rcsid[] =
"$Id: ext_srvtab.c,v 1.3 1995/07/18 16:35:55 mark Exp $";
#endif lint
+#endif
#include <stdio.h>
+#include <string.h>
#include <sys/file.h>
#include <sys/types.h>
#include <sys/time.h>
@@ -30,6 +33,11 @@ static Key_schedule master_key_schedule;
char progname[] = "ext_srvtab";
char realm[REALM_SZ];
+void FWrite(char *p, int size, int n, FILE *f);
+void StampOutSecrets(void);
+void usage(void);
+
+int
main(argc, argv)
int argc;
char *argv[];
@@ -131,12 +139,14 @@ main(argc, argv)
}
+void
Die()
{
StampOutSecrets();
exit(1);
}
+void
FWrite(p, size, n, f)
char *p;
int size;
@@ -149,6 +159,7 @@ FWrite(p, size, n, f)
}
}
+void
StampOutSecrets()
{
bzero(master_key, sizeof master_key);
@@ -156,6 +167,7 @@ StampOutSecrets()
bzero(master_key_schedule, sizeof master_key_schedule);
}
+void
usage()
{
fprintf(stderr,
OpenPOWER on IntegriCloud