Deleted Added
full compact
1c1
< /* $FreeBSD: head/contrib/telnet/libtelnet/sra.c 76751 2001-05-17 16:28:11Z nsayer $ */
---
> /* $FreeBSD: head/contrib/telnet/libtelnet/sra.c 81965 2001-08-20 12:28:40Z markm $ */
17a18,19
> #else
> #include <unistd.h>
19a22,23
> #include <pwd.h>
> #include <syslog.h>
35,36c39,40
< static sra_valid = 0;
< static passwd_sent = 0;
---
> static int sra_valid = 0;
> static int passwd_sent = 0;
47a52,53
> static int check_user(const char *, const char *);
>
49,53c55,56
< static int Data(ap, type, d, c)
< Authenticator *ap;
< int type;
< void *d;
< int c;
---
> static int
> Data(Authenticator *ap, int type, void *d, int c)
83,85c86,87
< int sra_init(ap, server)
< Authenticator *ap;
< int server;
---
> int
> sra_init(Authenticator *ap, int server)
108,109c110,111
< int sra_send(ap)
< Authenticator *ap;
---
> int
> sra_send(Authenticator *ap)
126,129c128,129
< void sra_is(ap, data, cnt)
< Authenticator *ap;
< unsigned char *data;
< int cnt;
---
> void
> sra_is(Authenticator *ap, unsigned char *data, int cnt)
220,221d219
< extern char *getpass();
<
223,226c221,222
< void sra_reply(ap, data, cnt)
< Authenticator *ap;
< unsigned char *data;
< int cnt;
---
> void
> sra_reply(Authenticator *ap, unsigned char *data, int cnt)
325,328c321,322
< int sra_status(ap, name, level)
< Authenticator *ap;
< char *name;
< int level;
---
> int
> sra_status(Authenticator *ap, char *name, int level)
342,344c336,337
< void sra_printsub(data, cnt, buf, buflen)
< unsigned char *data, *buf;
< int cnt, buflen;
---
> void
> sra_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
408,409c401
< sgetsave(s)
< char *s;
---
> sgetsave(char *s)
420,426d411
< #include <pwd.h>
< #include <syslog.h>
< #ifdef USE_SHADOW
< #include <shadow.h>
< #endif
<
<
428,429c413
< sgetpwnam(name)
< char *name;
---
> sgetpwnam(char *name)
468,469c452
< isroot(user)
< char *user;
---
> isroot(const char *user)
479,480c462
< rootterm(ttyn)
< char *ttyn;
---
> rootterm(char *ttyn)
488,492c470,471
< char *crypt();
<
< int check_user(name, pass)
< char *name;
< char *pass;
---
> static int
> check_user(const char *name, const char *pass)
537a517
> int
579c559,560
< int check_user(const char *name, const char *pass)
---
> static int
> check_user(const char *name, const char *pass)
582d562
< const char *tmpl_user;
626c606
< strcpy(name, (const char *) item);
---
> strcpy((char *) name, (const char *) item);