summaryrefslogtreecommitdiffstats
path: root/crypto/telnet/libtelnet/auth.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1997-09-07 07:02:53 +0000
committermarkm <markm@FreeBSD.org>1997-09-07 07:02:53 +0000
commitcd2a6be22c3f5c010eb7ec63c77cd0699a832567 (patch)
tree316b7a514809054240510520a7e779098c17795e /crypto/telnet/libtelnet/auth.c
parent2075d422d2e14fa0f55c71e4790fd46d0979a7a1 (diff)
downloadFreeBSD-src-cd2a6be22c3f5c010eb7ec63c77cd0699a832567.zip
FreeBSD-src-cd2a6be22c3f5c010eb7ec63c77cd0699a832567.tar.gz
Bring the FreeBSD changes to the virgin sources.
Diffstat (limited to 'crypto/telnet/libtelnet/auth.c')
-rw-r--r--crypto/telnet/libtelnet/auth.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/crypto/telnet/libtelnet/auth.c b/crypto/telnet/libtelnet/auth.c
index a8b287c..4262b55 100644
--- a/crypto/telnet/libtelnet/auth.c
+++ b/crypto/telnet/libtelnet/auth.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)auth.c 8.3 (Berkeley) 5/30/95";
+static const char sccsid[] = "@(#)auth.c 8.3 (Berkeley) 5/30/95";
#endif /* not lint */
/*
@@ -64,6 +64,7 @@ static char sccsid[] = "@(#)auth.c 8.3 (Berkeley) 5/30/95";
#include <arpa/telnet.h>
#ifdef __STDC__
#include <stdlib.h>
+#include <unistd.h>
#endif
#ifdef NO_STRING_H
#include <strings.h>
@@ -106,6 +107,9 @@ static unsigned char _auth_send_data[256];
static unsigned char *auth_send_data;
static int auth_send_cnt = 0;
+int auth_onoff(char *type, int on);
+void auth_encrypt_user(char *name);
+
/*
* Authentication types supported. Plese note that these are stored
* in priority order, i.e. try the first one first.
@@ -500,7 +504,7 @@ auth_is(data, cnt)
return;
}
- if (ap = findauthenticator(data[0], data[1])) {
+ if ((ap = findauthenticator(data[0], data[1]))) {
if (ap->is)
(*ap->is)(ap, data+2, cnt-2);
} else if (auth_debug_mode)
@@ -518,7 +522,7 @@ auth_reply(data, cnt)
if (cnt < 2)
return;
- if (ap = findauthenticator(data[0], data[1])) {
+ if ((ap = findauthenticator(data[0], data[1]))) {
if (ap->reply)
(*ap->reply)(ap, data+2, cnt-2);
} else if (auth_debug_mode)
@@ -531,7 +535,6 @@ auth_name(data, cnt)
unsigned char *data;
int cnt;
{
- Authenticator *ap;
unsigned char savename[256];
if (cnt < 1) {
OpenPOWER on IntegriCloud