From 349a29d45a7cc10539fc1a42363885f1d186bc0a Mon Sep 17 00:00:00 2001 From: ru Date: Wed, 9 Feb 2005 20:23:36 +0000 Subject: Removed Kerberos remnants. --- libexec/rlogind/rlogind.8 | 19 +------------------ libexec/rlogind/rlogind.c | 45 +++++---------------------------------------- 2 files changed, 6 insertions(+), 58 deletions(-) (limited to 'libexec/rlogind') diff --git a/libexec/rlogind/rlogind.8 b/libexec/rlogind/rlogind.8 index 600a859..d861da5 100644 --- a/libexec/rlogind/rlogind.8 +++ b/libexec/rlogind/rlogind.8 @@ -32,7 +32,7 @@ .\" @(#)rlogind.8 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd February 9, 2005 .Dt RLOGIND 8 .Os .Sh NAME @@ -67,23 +67,6 @@ file, unless the user is logging in as the superuser. Disable keep-alive messages. .El .Pp -The following options are valid only if Kerberos is in use: -.Bl -tag -width indent -.It Fl k -Enable Kerberos authentication. -.It Fl v -Enable vacuous mode. -.It Fl x -Enable -.Tn DES -encryption for all data passed via the rlogin -session. -This may impact response time -and -.Tn CPU -utilization, but provides increased security. -.El -.Pp The .Nm utility listens for service requests at the port indicated in diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c index b4a0418..0a0d5a5 100644 --- a/libexec/rlogind/rlogind.c +++ b/libexec/rlogind/rlogind.c @@ -92,7 +92,7 @@ __FBSDID("$FreeBSD$"); #define TIOCPKT_WINDOW 0x80 #endif -#define ARGSTR "Dalnx" +#define ARGSTR "Daln" /* wrapper for KAME-special getnameinfo() */ #ifndef NI_WITHSCOPEID @@ -159,11 +159,6 @@ main(int argc, char *argv[]) case 'n': keepalive = 0; break; -#ifdef CRYPT - case 'x': - doencrypt = 1; - break; -#endif case '?': default: usage(); @@ -279,13 +274,6 @@ doit(int f, union sockunion *fromp) write(f, "", 1); confirmed = 1; /* we sent the null! */ } -#ifdef CRYPT - if (doencrypt) - (void) des_enc_write(f, - SECURE_MESSAGE, - strlen(SECURE_MESSAGE), - schedule, &kdata->session); -#endif netf = f; pid = forkpty(&master, line, NULL, &win); @@ -313,15 +301,7 @@ doit(int f, union sockunion *fromp) fatal(STDERR_FILENO, _PATH_LOGIN, 1); /*NOTREACHED*/ } -#ifdef CRYPT - /* - * If encrypted, don't turn on NBIO or the des read/write - * routines will croak. - */ - - if (!doencrypt) -#endif - ioctl(f, FIONBIO, &on); + ioctl(f, FIONBIO, &on); ioctl(master, FIONBIO, &on); ioctl(master, TIOCPKT, &on); signal(SIGCHLD, cleanup); @@ -424,13 +404,7 @@ protocol(int f, int p) } } if (FD_ISSET(f, &ibits)) { -#ifdef CRYPT - if (doencrypt) - fcc = des_enc_read(f, fibuf, sizeof(fibuf), - schedule, &kdata->session); - else -#endif - fcc = read(f, fibuf, sizeof(fibuf)); + fcc = read(f, fibuf, sizeof(fibuf)); if (fcc < 0 && errno == EWOULDBLOCK) fcc = 0; else { @@ -476,10 +450,7 @@ protocol(int f, int p) break; else if (pibuf[0] == 0) { pbp++, pcc--; -#ifdef CRYPT - if (!doencrypt) -#endif - FD_SET(f, &obits); /* try write */ + FD_SET(f, &obits); /* try write */ } else { if (pkcontrol(pibuf[0])) { pibuf[0] |= oobdata[0]; @@ -489,13 +460,7 @@ protocol(int f, int p) } } if ((FD_ISSET(f, &obits)) && pcc > 0) { -#ifdef CRYPT - if (doencrypt) - cc = des_enc_write(f, pbp, pcc, - schedule, &kdata->session); - else -#endif - cc = write(f, pbp, pcc); + cc = write(f, pbp, pcc); if (cc < 0 && errno == EWOULDBLOCK) { /* * This happens when we try write after read -- cgit v1.1