git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@993 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1996-11-17 00:18:18 +00:00
parent 74c0bb16f5
commit 1fecad00ea

View File

@@ -199,9 +199,7 @@ static int i_support = 0;
static int i_wont_support = 0;
Authenticator *
findauthenticator(type, way)
int type;
int way;
findauthenticator(int type, int way)
{
Authenticator *ap = authenticators;
@@ -211,9 +209,7 @@ findauthenticator(type, way)
}
void
auth_init(name, server)
char *name;
int server;
auth_init(char *name, int server)
{
Authenticator *ap = authenticators;
@@ -239,8 +235,7 @@ auth_init(name, server)
}
void
auth_disable_name(name)
char *name;
auth_disable_name(char *name)
{
int x;
for (x = 0; x < AUTHTYPE_CNT; ++x) {
@@ -252,9 +247,7 @@ auth_disable_name(name)
}
int
getauthmask(type, maskp)
char *type;
int *maskp;
getauthmask(char *type, int *maskp)
{
register int x;
@@ -273,23 +266,19 @@ getauthmask(type, maskp)
}
int
auth_enable(type)
char *type;
auth_enable(char *type)
{
return(auth_onoff(type, 1));
}
int
auth_disable(type)
char *type;
auth_disable(char *type)
{
return(auth_onoff(type, 0));
}
int
auth_onoff(type, on)
char *type;
int on;
auth_onoff(char *type, int on)
{
int i, mask = -1;
Authenticator *ap;
@@ -320,8 +309,7 @@ auth_onoff(type, on)
}
int
auth_togdebug(on)
int on;
auth_togdebug(int on)
{
if (on < 0)
auth_debug_mode ^= 1;
@@ -332,7 +320,7 @@ auth_togdebug(on)
}
int
auth_status()
auth_status(void)
{
Authenticator *ap;
int i, mask;
@@ -359,7 +347,7 @@ auth_status()
* negotiation.
*/
void
auth_request()
auth_request(void)
{
static unsigned char str_request[64] = { IAC, SB,
TELOPT_AUTHENTICATION,
@@ -399,9 +387,7 @@ auth_request()
* protocol says)) you will have to hack this code...
*/
void
auth_send(data, cnt)
unsigned char *data;
int cnt;
auth_send(unsigned char *data, int cnt)
{
Authenticator *ap;
static unsigned char str_none[] = { IAC, SB, TELOPT_AUTHENTICATION,
@@ -485,7 +471,7 @@ auth_send(data, cnt)
}
void
auth_send_retry()
auth_send_retry(void)
{
/*
* if auth_send_cnt <= 0 then auth_send will end up rejecting
@@ -495,9 +481,7 @@ auth_send_retry()
}
void
auth_is(data, cnt)
unsigned char *data;
int cnt;
auth_is(unsigned char *data, int cnt)
{
Authenticator *ap;
@@ -518,9 +502,7 @@ auth_is(data, cnt)
}
void
auth_reply(data, cnt)
unsigned char *data;
int cnt;
auth_reply(unsigned char *data, int cnt)
{
Authenticator *ap;
@@ -536,9 +518,7 @@ auth_reply(data, cnt)
}
void
auth_name(data, cnt)
unsigned char *data;
int cnt;
auth_name(unsigned char *data, int cnt)
{
unsigned char savename[256];
@@ -561,9 +541,7 @@ auth_name(data, cnt)
}
int
auth_sendname(cp, len)
unsigned char *cp;
int len;
auth_sendname(unsigned char *cp, int len)
{
static unsigned char str_request[256+6]
= { IAC, SB, TELOPT_AUTHENTICATION, TELQUAL_NAME, };
@@ -584,9 +562,7 @@ auth_sendname(cp, len)
}
void
auth_finished(ap, result)
Authenticator *ap;
int result;
auth_finished(Authenticator *ap, int result)
{
if (!(authenticated = ap))
authenticated = &NoAuth;
@@ -595,15 +571,13 @@ auth_finished(ap, result)
/* ARGSUSED */
static void
auth_intr(sig)
int sig;
auth_intr(int sig)
{
auth_finished(0, AUTH_REJECT);
}
int
auth_wait(name)
char *name;
auth_wait(char *name)
{
if (auth_debug_mode)
printf(">>>%s: in auth_wait.\r\n", Name);
@@ -635,16 +609,13 @@ auth_wait(name)
}
void
auth_debug(mode)
int mode;
auth_debug(int mode)
{
auth_debug_mode = mode;
}
void
auth_printsub(data, cnt, buf, buflen)
unsigned char *data, *buf;
int cnt, buflen;
auth_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
{
Authenticator *ap;
@@ -655,9 +626,7 @@ auth_printsub(data, cnt, buf, buflen)
}
void
auth_gen_printsub(data, cnt, buf, buflen)
unsigned char *data, *buf;
int cnt, buflen;
auth_gen_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
{
register unsigned char *cp;
unsigned char tbuf[16];