summaryrefslogtreecommitdiff
path: root/usr.bin/rlogin
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2001-07-17 02:13:31 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2001-07-17 02:13:31 +0000
commitfede51bc6df1cd1fce250efe151ecc1cb867f1d9 (patch)
tree71cfde1a3b938ae0b7f3ee1b510887435000daac /usr.bin/rlogin
parent8dc2aefc9d10e610024712f7b383fe54302751d8 (diff)
missing prototypes; ok deraadt
Diffstat (limited to 'usr.bin/rlogin')
-rw-r--r--usr.bin/rlogin/des_rw.c9
-rw-r--r--usr.bin/rlogin/kcmd.c8
-rw-r--r--usr.bin/rlogin/krcmd.c7
3 files changed, 18 insertions, 6 deletions
diff --git a/usr.bin/rlogin/des_rw.c b/usr.bin/rlogin/des_rw.c
index bb549f8ccff..26f7c2c1dda 100644
--- a/usr.bin/rlogin/des_rw.c
+++ b/usr.bin/rlogin/des_rw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: des_rw.c,v 1.7 1997/06/29 11:10:36 provos Exp $ */
+/* $OpenBSD: des_rw.c,v 1.8 2001/07/17 02:13:29 pvalchev Exp $ */
/* $NetBSD: des_rw.c,v 1.2 1995/03/21 07:58:30 cgd Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)des_rw.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: des_rw.c,v 1.7 1997/06/29 11:10:36 provos Exp $";
+static char rcsid[] = "$OpenBSD: des_rw.c,v 1.8 2001/07/17 02:13:29 pvalchev Exp $";
#endif
#endif /* not lint */
@@ -53,6 +53,11 @@ static char rcsid[] = "$OpenBSD: des_rw.c,v 1.7 1997/06/29 11:10:36 provos Exp $
#include <time.h>
#include <unistd.h>
+void desrw_set_key __P((des_cblock *, des_key_schedule *));
+void desrw_clear_key __P((void));
+int des_read __P((int, char *, int));
+int des_write __P((int, char *, int));
+
static unsigned char des_inbuf[10240], storage[10240], *store_ptr;
static des_cblock *key;
static des_key_schedule *key_schedule;
diff --git a/usr.bin/rlogin/kcmd.c b/usr.bin/rlogin/kcmd.c
index e615bb964de..aaf7e8b026f 100644
--- a/usr.bin/rlogin/kcmd.c
+++ b/usr.bin/rlogin/kcmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kcmd.c,v 1.11 2000/02/29 23:02:19 deraadt Exp $ */
+/* $OpenBSD: kcmd.c,v 1.12 2001/07/17 02:13:29 pvalchev Exp $ */
/* $NetBSD: kcmd.c,v 1.2 1995/03/21 07:58:32 cgd Exp $ */
/*
@@ -39,7 +39,7 @@
static char Xsccsid[] = "derived from @(#)rcmd.c 5.17 (Berkeley) 6/27/88";
static char sccsid[] = "@(#)kcmd.c 8.2 (Berkeley) 8/19/93";
#else
-static char rcsid[] = "$OpenBSD: kcmd.c,v 1.11 2000/02/29 23:02:19 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: kcmd.c,v 1.12 2001/07/17 02:13:29 pvalchev Exp $";
#endif
#endif /* not lint */
@@ -73,6 +73,10 @@ static char rcsid[] = "$OpenBSD: kcmd.c,v 1.11 2000/02/29 23:02:19 deraadt Exp $
#define START_PORT 5120 /* arbitrary */
int getport __P((int *));
+int kcmd __P((int *, char **, u_short, char *, char *, char *,
+ int *, KTEXT, char *, char *, CREDENTIALS *,
+ Key_schedule, MSG_DAT *, struct sockaddr_in *,
+ struct sockaddr_in *, long));
int
kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, ticket, service, realm,
diff --git a/usr.bin/rlogin/krcmd.c b/usr.bin/rlogin/krcmd.c
index 5e82d9741bb..fe0b87c3d52 100644
--- a/usr.bin/rlogin/krcmd.c
+++ b/usr.bin/rlogin/krcmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: krcmd.c,v 1.7 1997/06/29 11:10:37 provos Exp $ */
+/* $OpenBSD: krcmd.c,v 1.8 2001/07/17 02:13:30 pvalchev Exp $ */
/* $NetBSD: krcmd.c,v 1.2 1995/03/21 07:58:36 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)krcmd.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: krcmd.c,v 1.7 1997/06/29 11:10:37 provos Exp $";
+static char rcsid[] = "$OpenBSD: krcmd.c,v 1.8 2001/07/17 02:13:30 pvalchev Exp $";
#endif
#endif /* not lint */
@@ -63,6 +63,9 @@ static char rcsid[] = "$OpenBSD: krcmd.c,v 1.7 1997/06/29 11:10:37 provos Exp $"
int kcmd __P((int *, char **, u_short, char *, char *, char *, int *,
KTEXT, char *, char *, CREDENTIALS *, Key_schedule, MSG_DAT *,
struct sockaddr_in *, struct sockaddr_in *, long));
+int krcmd __P((char **, u_short, char *, char *, int *, char *));
+int krcmd_mutual __P((char **, u_short, char *, char *, int *, char *,
+ CREDENTIALS *, Key_schedule));
/*
* krcmd: simplified version of Athena's "kcmd"