From 2539acf77b018acd7416a9857a14c466e55cd7e8 Mon Sep 17 00:00:00 2001 From: markm Date: Thu, 7 Sep 1995 21:39:00 +0000 Subject: 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. --- eBones/ext_srvtab/ext_srvtab.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'eBones/ext_srvtab/ext_srvtab.c') 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 +#include #include #include #include @@ -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, -- cgit v1.1