#include <pwd.h>
#include <sys/param.h>
+#if defined(aix) /* AIX needs BSD defined to some value for socket.h */
+#define _BSD 44
+#endif
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/file.h>
#define NOTOK 1
#define MAX_USERNAME 10
+#ifdef unicos61
+#ifdef MAXPATHLEN
+#undef MAXPATHLEN
+#endif
+#define MAXPATHLEN PATHSIZE
+#endif /* unicos61 */
+
+#ifndef F_OK
+#define F_OK 0
+#endif
+
/*
* Given a Kerberos principal "kdata", and a local username "luser",
* determine whether user is authorized to login according to the
* one entry per line.
*
* The ATHENA_COMPAT code supports old-style Athena ~luser/.klogin
- * file entries. See the file "kparse.c".
+ * file entries. See the file "kn_parse.c".
*/
int gobble;
/* no account => no access */
- if ((pwd = getpwnam(luser)) == NULL) {
+ if ((pwd = (struct passwd *) getpwnam(luser)) == NULL) {
return(NOTOK);
}
(void) strcpy(pbuf, pwd->pw_dir);
#endif /* !lint & !SABER */
#include "krb425.h"
+#ifndef hpux
#include <arpa/inet.h>
+#endif
long
krb_mk_priv(in, out, in_length, sched, key, sender, receiver)
#endif /* !lint & !SABER */
#include "krb425.h"
+#ifndef hpux
#include <arpa/inet.h>
+#endif
long
krb_mk_safe(in, out, in_length, key, sender, receiver)
#endif /* !lint & !SABER */
#include "krb425.h"
+#ifndef hpux
#include <arpa/inet.h>
+#endif
long
krb_rd_priv(in, in_length, sched, key, sender, receiver, msg)
#endif /* !lint & !SABER */
#include "krb425.h"
+#ifndef hpux
#include <arpa/inet.h>
+#endif
long
krb_rd_safe(in, in_length, key, sender, receiver, msg)
#include <syslog.h>
#include <errno.h>
#include <stdio.h>
-#include <strings.h>
+#include <string.h>
#define KRB_SENDAUTH_VERS "AUTHV0.1" /* MUST be KRB_SENDAUTH_VLEN chars */
/*