#endif
char *getenv();
-void dofork();
+void dofork(void);
-
-
-
-void term_init();
-int doremotelogin(), do_krb_login(), rootterm();
-void lgetstr(), getloginname(), checknologin(), sleepexit();
-void dolastlog(), motd(), check_mail();
+char *stypeof(char *);
+void term_init(int);
+int doremotelogin(char *), do_krb_login(char *, int), rootterm(char *);
+void lgetstr(char *, int, char *), getloginname(void), checknologin(void);
+void dolastlog(char *, int, char *), motd(void), check_mail(void);
+void sleepexit(int);
#ifndef HAVE_STRSAVE
-char * strsave();
+char * strsave(char *);
#endif
typedef krb5_sigtype sigtype;
#endif
/* get flags (listed above) from the profile */
-void login_get_kconf(k)
+static void login_get_kconf(k)
krb5_context k;
{
int i, max_i;
struct spwd *spwd;
#endif
-void lookup_user (name)
+static void lookup_user (name)
char *name;
{
pwd = getpwnam (name);
#endif
}
-int unix_needs_passwd ()
+static int unix_needs_passwd ()
{
#ifdef HAVE_SHADOW
if (spwd)
return 1;
}
-int unix_passwd_okay (pass)
+static int unix_passwd_okay (pass)
char *pass;
{
char user_pwcopy[9], *namep;
#endif
#ifdef KRB4_GET_TICKETS
-void k_init (ttyn, realm)
+static void k_init (ttyn, realm)
char *ttyn;
char *realm;
#else
}
#ifdef KRB5_GET_TICKETS
-int k5_get_password (user_pwstring, pwsize)
+static int k5_get_password (user_pwstring, pwsize)
char *user_pwstring;
unsigned int pwsize;
{
return 1;
}
-int try_krb5 (me_p, pass)
+static int try_krb5 (me_p, pass)
krb5_principal *me_p;
char *pass;
{
return 1;
}
-int have_v5_tickets (me)
+static int have_v5_tickets (me)
krb5_principal *me;
{
if (krb5_cc_default (kcontext, &ccache))
#endif /* KRB5_GET_TICKETS */
#ifdef KRB4_CONVERT
-int
+static int
try_convert524(kctx, me, use_ccache)
krb5_context kctx;
krb5_principal me;
#endif
#ifdef KRB4_GET_TICKETS
-int
+static int
try_krb4 (me, user_pwstring, realm)
krb5_principal me;
char *user_pwstring;
*
* Returns 1 for confirmation, -1 for failure, 0 for uncertainty.
*/
-int verify_krb_v4_tgt (realm)
+static int verify_krb_v4_tgt (realm)
char *realm;
{
char hostname[MAXHOSTNAMELEN], phost[BUFSIZ];
}
#endif /* KRB4_GET_TICKETS */
-void destroy_tickets()
+static void destroy_tickets()
{
#ifdef KRB5_GET_TICKETS
krb5_ccache cache;
#endif /* SIGSYS */
#endif /* SETPAG */
-void
+static void
afs_login ()
{
#if defined(KRB4_GET_TICKETS) && defined(SETPAG)
#endif /* KRB_RUN_AKLOG */
}
-void
+static void
afs_cleanup ()
{
#ifdef SETPAG
sigtype timedout();
char *domain, **envinit, *ttyn, *tty;
char tbuf[MAXPATHLEN + 2];
- char *ttyname(), *stypeof(), *crypt(), *getpass();
+ char *ttyname(), *crypt(), *getpass();
time_t login_time;
int retval;
int rewrite_ccache = 1; /*try to write out ccache*/
void
term_init (do_rlogin)
+int do_rlogin;
{
int line_speed = -1;
#include <krbports.h>
-void sink(), source(), rsource(), usage();
+void sink(int, char **), source(int, char **),
+ rsource(char *, struct stat *), usage(void);
/*VARARGS*/
void error();
-int response();
+int response(void);
#if !defined(HAVE_UTIMES)
int utimes();
#endif
int returned;
} *kstream;
-kstream kstream_create_rcp_from_fd(read_fd, write_fd, sched, ivec)
+static kstream kstream_create_rcp_from_fd(read_fd, write_fd, sched, ivec)
int read_fd, write_fd;
des_key_schedule *sched;
des_cblock *ivec;
return tmp;
}
-kstream kstream_create_from_fd(read_fd, write_fd, sched, session)
+static kstream kstream_create_from_fd(read_fd, write_fd, sched, session)
int read_fd, write_fd;
Key_schedule *sched;
des_cblock *session;
/* always set to 0 here anyway */
#define kstream_set_buffer_mode(x,y)
-int kstream_read(krem, buf, len)
+static int kstream_read(krem, buf, len)
kstream krem;
char *buf;
int len;
}
}
-int kstream_write(krem, buf, len)
+static int kstream_write(krem, buf, len)
kstream krem;
char *buf;
int len;
AUTH_DAT kdata;
static des_cblock crypt_session_key;
char krb_realm[REALM_SZ];
-char **save_argv(), *krb_realmofhost();
+char **save_argv(int, char **), *krb_realmofhost();
#ifndef HAVE_STRSAVE
-static char *strsave();
+static char *strsave(char *);
#endif
#ifdef NOENCRYPTION
#define des_read read
#define des_write write
#else /* !NOENCRYPTION */
-void send_auth(), answer_auth();
+void answer_auth(void);
int encryptflag = 0;
#endif /* NOENCRYPTION */
#include "rpaths.h"
struct buffer {
int cnt;
char *buf;
-} *allocbuf();
+} *allocbuf(struct buffer *, int, int);
#define NULLBUF (struct buffer *) 0
return 1;
}
-void verifydir(cp)
+static void verifydir(cp)
char *cp;
{
struct stat stb;