summaryrefslogtreecommitdiffstats
path: root/eBones/usr.bin
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1995-08-25 22:52:32 +0000
committermarkm <markm@FreeBSD.org>1995-08-25 22:52:32 +0000
commita83b802bada404e3b2eccf92c3499966deaad171 (patch)
tree45f2ba147600b7d47d9e9695cf572877c7fa4773 /eBones/usr.bin
parent2d8492d7c86b21502ee9277e20ef1e6e931b7c44 (diff)
downloadFreeBSD-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/usr.bin')
-rw-r--r--eBones/usr.bin/kadmin/Makefile2
-rw-r--r--eBones/usr.bin/kadmin/kadmin.c4
-rw-r--r--eBones/usr.bin/kadmin/kadmin_cmds.ct10
-rw-r--r--eBones/usr.bin/kdestroy/Makefile2
-rw-r--r--eBones/usr.bin/kdestroy/kdestroy.c4
-rw-r--r--eBones/usr.bin/kinit/Makefile2
-rw-r--r--eBones/usr.bin/kinit/kinit.c6
-rw-r--r--eBones/usr.bin/klist/Makefile2
-rw-r--r--eBones/usr.bin/klist/klist.c4
-rw-r--r--eBones/usr.bin/ksrvtgt/Makefile2
-rw-r--r--eBones/usr.bin/ksrvtgt/ksrvtgt.c6
-rw-r--r--eBones/usr.bin/passwd/kpasswd.c2
-rw-r--r--eBones/usr.bin/register/Makefile2
-rw-r--r--eBones/usr.bin/register/register.c8
14 files changed, 28 insertions, 28 deletions
diff --git a/eBones/usr.bin/kadmin/Makefile b/eBones/usr.bin/kadmin/Makefile
index a22c9e2..d7cf0a3 100644
--- a/eBones/usr.bin/kadmin/Makefile
+++ b/eBones/usr.bin/kadmin/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.1 1995/01/20 02:47:48 wollman Exp $
+# $Id: Makefile,v 1.1 1995/07/18 16:36:53 mark Exp $
BINDIR= /usr/bin
PROG= kadmin
diff --git a/eBones/usr.bin/kadmin/kadmin.c b/eBones/usr.bin/kadmin/kadmin.c
index cbf4d6f..56f03d0 100644
--- a/eBones/usr.bin/kadmin/kadmin.c
+++ b/eBones/usr.bin/kadmin/kadmin.c
@@ -1,6 +1,6 @@
/*
- * $Source: /home/ncvs/src/eBones/kadmin/kadmin.c,v $
- * $Author: wollman $
+ * $Source: /usr/cvs/src/eBones/kadmin/kadmin.c,v $
+ * $Author: mark $
*
* Copyright 1988 by the Massachusetts Institute of Technology.
*
diff --git a/eBones/usr.bin/kadmin/kadmin_cmds.ct b/eBones/usr.bin/kadmin/kadmin_cmds.ct
index 92d31fd..141ac15 100644
--- a/eBones/usr.bin/kadmin/kadmin_cmds.ct
+++ b/eBones/usr.bin/kadmin/kadmin_cmds.ct
@@ -1,12 +1,12 @@
-# $Source: /mit/kerberos/src/kadmin/RCS/kadmin_cmds.ct,v $
-# $Author: jtkohl $
-# $Header: /mit/kerberos/src/kadmin/RCS/kadmin_cmds.ct,v 4.1 89/07/25 17:02:28 jtkohl Exp $
+# $Source: /usr/cvs/src/eBones/kadmin/kadmin_cmds.ct,v $
+# $Author: mark $
+# $Header: /usr/cvs/src/eBones/kadmin/kadmin_cmds.ct,v 1.1 1995/07/18 16:36:56 mark Exp $
#
# Copyright 1988 by the Massachusetts Institute of Technology.
-#
+#
# For copying and distribution information, please see the file
# <mit-copyright.h>.
-#
+#
# Command table for Kerberos administration tool
#
command_table admin_cmds;
diff --git a/eBones/usr.bin/kdestroy/Makefile b/eBones/usr.bin/kdestroy/Makefile
index 5947028..2a79774 100644
--- a/eBones/usr.bin/kdestroy/Makefile
+++ b/eBones/usr.bin/kdestroy/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 5.1 (Berkeley) 6/25/90
-# $Id: Makefile,v 1.2 1994/07/19 19:24:15 g89r4222 Exp $
+# $Id: Makefile,v 1.3 1995/07/18 16:37:42 mark Exp $
PROG= kdestroy
CFLAGS+=-DKERBEROS -DDEBUG -I${.CURDIR}/../include -DBSD42
diff --git a/eBones/usr.bin/kdestroy/kdestroy.c b/eBones/usr.bin/kdestroy/kdestroy.c
index 8a7cbb7..c64a731 100644
--- a/eBones/usr.bin/kdestroy/kdestroy.c
+++ b/eBones/usr.bin/kdestroy/kdestroy.c
@@ -10,12 +10,12 @@
* -f[orce] - no message printed at all
*
* from: kdestroy.c,v 4.5 88/03/18 15:16:02 steiner Exp $
- * $Id: kdestroy.c,v 1.1.1.1 1994/09/30 14:49:57 csgr Exp $
+ * $Id: kdestroy.c,v 1.3 1995/07/18 16:37:44 mark Exp $
*/
#ifndef lint
static char rcsid[] =
-"$Id: kdestroy.c,v 1.1.1.1 1994/09/30 14:49:57 csgr Exp $";
+"$Id: kdestroy.c,v 1.3 1995/07/18 16:37:44 mark Exp $";
#endif lint
#include <stdio.h>
diff --git a/eBones/usr.bin/kinit/Makefile b/eBones/usr.bin/kinit/Makefile
index e616f42..24f1a95 100644
--- a/eBones/usr.bin/kinit/Makefile
+++ b/eBones/usr.bin/kinit/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 5.1 (Berkeley) 6/25/90
-# $Id: Makefile,v 1.2 1994/07/19 19:24:31 g89r4222 Exp $
+# $Id: Makefile,v 1.3 1995/07/18 16:37:53 mark Exp $
PROG= kinit
CFLAGS+=-DKERBEROS -DDEBUG -I${.CURDIR}/../include -DBSD42
diff --git a/eBones/usr.bin/kinit/kinit.c b/eBones/usr.bin/kinit/kinit.c
index 9f531d1..6cde305 100644
--- a/eBones/usr.bin/kinit/kinit.c
+++ b/eBones/usr.bin/kinit/kinit.c
@@ -15,12 +15,12 @@
* -l[ifetime]
*
* from: kinit.c,v 4.12 90/03/20 16:11:15 jon Exp $
- * $Id: kinit.c,v 1.1.1.1 1994/09/30 14:49:58 csgr Exp $
+ * $Id: kinit.c,v 1.4 1995/08/03 17:16:00 mark Exp $
*/
#ifndef lint
static char rcsid[] =
-"$Id: kinit.c,v 1.1.1.1 1994/09/30 14:49:58 csgr Exp $";
+"$Id: kinit.c,v 1.4 1995/08/03 17:16:00 mark Exp $";
#endif lint
#include <stdio.h>
@@ -35,7 +35,7 @@ static char rcsid[] =
#define LEN 64 /* just guessing */
#endif PC
-#if defined(BSD42) || defined(__FreeBSD__)
+#if defined(BSD42) || defined(__FreeBSD__) || defined(__NetBSD__)
#include <strings.h>
#include <sys/param.h>
#if defined(ultrix) || defined(sun)
diff --git a/eBones/usr.bin/klist/Makefile b/eBones/usr.bin/klist/Makefile
index aa0d720..b5ec669 100644
--- a/eBones/usr.bin/klist/Makefile
+++ b/eBones/usr.bin/klist/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 5.1 (Berkeley) 6/25/90
-# $Id: Makefile,v 1.2 1994/07/19 19:24:37 g89r4222 Exp $
+# $Id: Makefile,v 1.3 1995/07/18 16:37:57 mark Exp $
PROG= klist
CFLAGS+=-DKERBEROS -DDEBUG -I${.CURDIR}/../include
diff --git a/eBones/usr.bin/klist/klist.c b/eBones/usr.bin/klist/klist.c
index bfc3aa0..29e6453 100644
--- a/eBones/usr.bin/klist/klist.c
+++ b/eBones/usr.bin/klist/klist.c
@@ -7,12 +7,12 @@
* Written by Bill Sommerfeld, MIT Project Athena.
*
* from: klist.c,v 4.15 89/08/30 11:19:16 jtkohl Exp $
- * $Id: klist.c,v 1.1.1.1 1994/09/30 14:49:58 csgr Exp $
+ * $Id: klist.c,v 1.3 1995/07/18 16:37:59 mark Exp $
*/
#ifndef lint
static char rcsid[] =
-"$Id: klist.c,v 1.1.1.1 1994/09/30 14:49:58 csgr Exp $";
+"$Id: klist.c,v 1.3 1995/07/18 16:37:59 mark Exp $";
#endif lint
#include <stdio.h>
diff --git a/eBones/usr.bin/ksrvtgt/Makefile b/eBones/usr.bin/ksrvtgt/Makefile
index 5e8944d..1c6b0dc 100644
--- a/eBones/usr.bin/ksrvtgt/Makefile
+++ b/eBones/usr.bin/ksrvtgt/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 5.1 (Berkeley) 6/25/90
-# $Id: Makefile,v 1.2 1994/07/19 19:26:54 g89r4222 Exp $
+# $Id: Makefile,v 1.3 1995/07/18 16:40:05 mark Exp $
PROG= ksrvtgt
CFLAGS+=-DKERBEROS -DDEBUG -I${.CURDIR}/../include
diff --git a/eBones/usr.bin/ksrvtgt/ksrvtgt.c b/eBones/usr.bin/ksrvtgt/ksrvtgt.c
index 79acf3e..c51457c 100644
--- a/eBones/usr.bin/ksrvtgt/ksrvtgt.c
+++ b/eBones/usr.bin/ksrvtgt/ksrvtgt.c
@@ -7,12 +7,12 @@
* The lifetime is the shortest allowed [1 five-minute interval]
*
* from: ksrvtgt.c,v 4.3 89/07/28 10:17:28 jtkohl Exp $
- * $Id: ksrvtgt.c,v 1.1.1.1 1994/09/30 14:50:04 csgr Exp $
+ * $Id: ksrvtgt.c,v 1.3 1995/07/18 16:40:07 mark Exp $
*/
#ifndef lint
const char rcsid[] =
-"$Id: ksrvtgt.c,v 1.1.1.1 1994/09/30 14:50:04 csgr Exp $";
+"$Id: ksrvtgt.c,v 1.3 1995/07/18 16:40:07 mark Exp $";
#endif /* lint */
#include <stdio.h>
@@ -49,7 +49,7 @@ main(argc,argv)
(void) strcpy(srvtab, KEYFILE);
if (realm[0] == 0)
- if (krb_get_lrealm(realm) != KSUCCESS)
+ if (krb_get_lrealm(realm, 1) != KSUCCESS)
(void) strcpy(realm, KRB_REALM);
code = krb_get_svc_in_tkt(argv[1], argv[2], realm,
diff --git a/eBones/usr.bin/passwd/kpasswd.c b/eBones/usr.bin/passwd/kpasswd.c
index 2425bed..56e76a3 100644
--- a/eBones/usr.bin/passwd/kpasswd.c
+++ b/eBones/usr.bin/passwd/kpasswd.c
@@ -13,7 +13,7 @@ static char rcsid_kpasswd_c[] =
"BonesHeader: /afs/athena.mit.edu/astaff/project/kerberos/src/kadmin/RCS/kpasswd.c,v 4.3 89/09/26 09:33:02 jtkohl Exp ";
#endif
static const char rcsid[] =
- "$Id: kpasswd.c,v 1.1 1995/01/20 22:14:14 wollman Exp $";
+ "$Id: kpasswd.c,v 1.1 1995/07/18 16:41:20 mark Exp $";
#endif lint
/*
diff --git a/eBones/usr.bin/register/Makefile b/eBones/usr.bin/register/Makefile
index 3ab09c3..909569bb 100644
--- a/eBones/usr.bin/register/Makefile
+++ b/eBones/usr.bin/register/Makefile
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 6/1/93
-# $Id: Makefile,v 1.4 1994/07/20 09:21:07 g89r4222 Exp $
+# $Id: Makefile,v 1.5 1995/07/18 16:41:22 mark Exp $
PROG= register
SRCS= register.c
diff --git a/eBones/usr.bin/register/register.c b/eBones/usr.bin/register/register.c
index d20f848..3f3cbbf 100644
--- a/eBones/usr.bin/register/register.c
+++ b/eBones/usr.bin/register/register.c
@@ -52,13 +52,13 @@ static char sccsid[] = "@(#)register.c 8.1 (Berkeley) 6/1/93";
#include <pwd.h>
#include <stdio.h>
#include <netdb.h>
-#include <kerberosIV/des.h>
+#include <des.h>
#include <kerberosIV/krb.h>
#include "pathnames.h"
#include "register_proto.h"
-#define SERVICE "krbupdate" /* service to add to KDC's database */
-#define PROTO "tcp"
+#define SERVICE "krbupdate" /* service to add to KDC's database */
+#define PROTOCOL "tcp"
char realm[REALM_SZ];
char krbhst[MAX_HSTNM];
@@ -90,7 +90,7 @@ main(argc, argv)
exit(1);
}
- if ((se = getservbyname(SERVICE, PROTO)) == NULL) {
+ if ((se = getservbyname(SERVICE, PROTOCOL)) == NULL) {
fprintf(stderr, "couldn't find entry for service %s\n",
SERVICE);
exit(1);
OpenPOWER on IntegriCloud