diff options
author | markm <markm@FreeBSD.org> | 1995-08-25 22:52:32 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1995-08-25 22:52:32 +0000 |
commit | a83b802bada404e3b2eccf92c3499966deaad171 (patch) | |
tree | 45f2ba147600b7d47d9e9695cf572877c7fa4773 /eBones/libkadm/kadm_supp.c | |
parent | 2d8492d7c86b21502ee9277e20ef1e6e931b7c44 (diff) | |
download | FreeBSD-src-a83b802bada404e3b2eccf92c3499966deaad171.zip FreeBSD-src-a83b802bada404e3b2eccf92c3499966deaad171.tar.gz |
Start the eBones cleanup ball rolling.
These are the start of a lot of work to clean up the FreeBSD eBones code.
these changes include, but are not limited to:
- Create prototypes for all the library routines
- Make all the libraries compile clean with -Wall set
- Fix numerous small bugs shown up in the above process
- Prepare the code for libdes's removal to secure/
- add register, registerd and make_keypair to the make
Lots more will follow in days to come.
OK'ed by: rgrimes
Diffstat (limited to 'eBones/libkadm/kadm_supp.c')
-rw-r--r-- | eBones/libkadm/kadm_supp.c | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/eBones/libkadm/kadm_supp.c b/eBones/libkadm/kadm_supp.c index 8b18621..deaf63b 100644 --- a/eBones/libkadm/kadm_supp.c +++ b/eBones/libkadm/kadm_supp.c @@ -7,14 +7,14 @@ * Support functions for Kerberos administration server & clients */ -#ifndef lint #if 0 +#ifndef lint static char rcsid_kadm_supp_c[] = "Header: /afs/athena.mit.edu/astaff/project/kerberos/src/lib/kadm/RCS/kadm_supp.c,v 4.1 89/09/26 09:21:07 jtkohl Exp "; -#endif static const char rcsid[] = - "$Id: kadm_supp.c,v 1.1 1995/01/20 02:02:54 wollman Exp $"; + "$Id: kadm_supp.c,v 1.1 1995/07/18 16:40:28 mark Exp $"; #endif lint +#endif /* kadm_supp.c @@ -26,6 +26,8 @@ static const char rcsid[] = structure */ +#include <time.h> +#include <string.h> #include "kadm.h" #include "krb_db.h" @@ -33,19 +35,17 @@ static const char rcsid[] = prin_vals: recieves : a vals structure */ -prin_vals(vals) -Kadm_vals *vals; +void prin_vals(Kadm_vals *vals) { printf("Info in Database for %s.%s:\n", vals->name, vals->instance); printf(" Max Life: %d Exp Date: %s\n",vals->max_life, asctime(localtime((long *)&vals->exp_date))); - printf(" Attribs: %.2x key: %u %u\n",vals->attributes, + printf(" Attribs: %.2x key: %lu %lu\n",vals->attributes, vals->key_low, vals->key_high); } #ifdef notdef -nierror(s) -int s; +int nierror(int s) { extern char *error_message(); printf("Kerberos admin server loses..... %s\n",error_message(s)); @@ -57,10 +57,7 @@ int s; it copies the fields in Principal specified by fields into Kadm_vals, i.e from old to new */ -kadm_prin_to_vals(fields, new, old) -u_char fields[FLDSZ]; -Kadm_vals *new; -Principal *old; +void kadm_prin_to_vals(u_char fields[], Kadm_vals *new, Principal *old) { bzero((char *)new, sizeof(*new)); if (IS_FIELD(KADM_NAME,fields)) { @@ -90,10 +87,7 @@ Principal *old; } } -kadm_vals_to_prin(fields, new, old) -u_char fields[FLDSZ]; -Principal *new; -Kadm_vals *old; +void kadm_vals_to_prin(u_char fields[], Principal *new, Kadm_vals *old) { bzero((char *)new, sizeof(*new)); |