summaryrefslogtreecommitdiffstats
path: root/eBones/lib/libkrb/read_service_key.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/lib/libkrb/read_service_key.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/lib/libkrb/read_service_key.c')
-rw-r--r--eBones/lib/libkrb/read_service_key.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/eBones/lib/libkrb/read_service_key.c b/eBones/lib/libkrb/read_service_key.c
index aa577fd..6064292 100644
--- a/eBones/lib/libkrb/read_service_key.c
+++ b/eBones/lib/libkrb/read_service_key.c
@@ -17,8 +17,8 @@ static char *rcsid =
#include <krb.h>
#include <stdio.h>
-#include <strings.h>
#include <unistd.h>
+#include <strings.h>
/*
* The private keys for servers on a given host are stored in a
@@ -54,8 +54,14 @@ static char *rcsid =
/*ARGSUSED */
-int read_service_key(char *service, char *instance, char *realm, int kvno,
- char *file, char *key)
+int
+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 */
{
char serv[SNAME_SZ];
char inst[INST_SZ];
OpenPOWER on IntegriCloud