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/krb/read_service_key.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/krb/read_service_key.c')
-rw-r--r-- | eBones/krb/read_service_key.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/eBones/krb/read_service_key.c b/eBones/krb/read_service_key.c index c68a8fc..aa577fd 100644 --- a/eBones/krb/read_service_key.c +++ b/eBones/krb/read_service_key.c @@ -5,17 +5,20 @@ * <Copyright.MIT>. * * from: _service_key.c,v 4.10 90/03/10 19:06:56 jon Exp $ - * $Id: read_service_key.c,v 1.1.1.1 1994/09/30 14:50:03 csgr Exp $ + * $Id: read_service_key.c,v 1.3 1995/07/18 16:39:36 mark Exp $ */ +#if 0 #ifndef lint static char *rcsid = -"$Id: read_service_key.c,v 1.1.1.1 1994/09/30 14:50:03 csgr Exp $"; +"$Id: read_service_key.c,v 1.3 1995/07/18 16:39:36 mark Exp $"; #endif /* lint */ +#endif #include <krb.h> #include <stdio.h> #include <strings.h> +#include <unistd.h> /* * The private keys for servers on a given host are stored in a @@ -51,13 +54,8 @@ static char *rcsid = /*ARGSUSED */ -read_service_key(service,instance,realm,kvno,file,key) - char *service; /* Service Name */ - char *instance; /* Instance name or "*" */ - char *realm; /* Realm */ - int kvno; /* Key version number */ - char *file; /* Filename */ - char *key; /* Pointer to key to be filled in */ +int read_service_key(char *service, char *instance, char *realm, int kvno, + char *file, char *key) { char serv[SNAME_SZ]; char inst[INST_SZ]; |