#include <sys/wait.h>
#endif
+#include <afs/sys_prototypes.h>
#include <afs/kautils.h>
#include <security/pam_appl.h>
#include <security/pam_modules.h>
#include "afs_message.h"
+#include "afs_pam_msg.h"
#include "afs_util.h"
-
#define RET(x) { retcode = (x); goto out; }
extern int
int i;
PAM_CONST struct pam_conv *pam_convp = NULL;
int auth_ok;
- struct passwd unix_pwd, *upwd = NULL;
- char upwd_buf[2048]; /* size is a guess. */
+ struct passwd *upwd = NULL;
char *reason = NULL;
pid_t cpid, rcpid;
int status;
struct sigaction newAction, origAction;
+#if !(defined(AFS_LINUX20_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_DFBSD_ENV) || defined(AFS_NBSD_ENV))
+ char upwd_buf[2048]; /* size is a guess. */
+ struct passwd unix_pwd;
+#endif
#ifndef AFS_SUN5_ENV
char *localcell;
PAM_CONST char *user = NULL, *password = NULL;
char *new_password = NULL, *verify_password = NULL;
- char upwd_buf[2048]; /* size is a guess. */
char *reason = NULL;
struct ktc_encryptionKey oldkey, newkey;
struct ktc_token token;
struct ubik_client *conn = 0;
PAM_CONST struct pam_conv *pam_convp = NULL;
- struct passwd unix_pwd, *upwd = NULL;
+ struct passwd *upwd = NULL;
+#if !(defined(AFS_LINUX20_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_DFBSD_ENV) || defined(AFS_NBSD_ENV))
+ char upwd_buf[2048]; /* size is a guess. */
+ struct passwd unix_pwd;
+#endif
#ifndef AFS_SUN5_ENV
openlog(pam_afs_ident, LOG_CONS, LOG_AUTH);
#include <security/pam_appl.h>
#include <security/pam_modules.h>
+#include <afs/auth.h>
#include "afs_message.h"
#include "afs_util.h"
i++;
remain = 1;
remainlifetime = (int)strtol(argv[i], (char **)NULL, 10);
- if (remainlifetime == 0)
+ if (remainlifetime == 0) {
if ((errno == EINVAL) || (errno == ERANGE)) {
remainlifetime = REMAINLIFETIME;
pam_afs_syslog(LOG_ERR, PAMAFS_REMAINLIFETIME, argv[i],
no_unlog = 0;
remain = 0;
}
+ }
} else if (strcmp(argv[i], "no_unlog") == 0) {
no_unlog = 1;
} else {
#include <security/pam_appl.h>
#include <security/pam_modules.h>
+#include <afs/sys_prototypes.h>
#include <afs/kautils.h>
#include "afs_message.h"
+#include "afs_pam_msg.h"
#include "afs_util.h"
#define RET(x) { retcode = (x); goto out; }
#if defined(AFS_KERBEROS_ENV)
-extern char *ktc_tkt_string();
+extern char *ktc_tkt_string(void);
#endif
extern int
char sbuffer[100];
char *torch_password = NULL;
int auth_ok = 0;
- char *lh;
PAM_CONST char *user = NULL;
const char *password = NULL;
int password_expires = -1;
char *reason = NULL;
- struct passwd unix_pwd, *upwd = NULL;
- char upwd_buf[2048]; /* size is a guess. */
+ struct passwd *upwd = NULL;
+#if !(defined(AFS_LINUX20_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_DFBSD_ENV) || defined(AFS_NBSD_ENV))
+ char upwd_buf[2048]; /* size is a guess. */
+ struct passwd unix_pwd;
+#endif
#ifndef AFS_SUN5_ENV
openlog(pam_afs_ident, LOG_CONS, LOG_AUTH);
#include <security/pam_appl.h>
+#include <afs/auth.h>
+
#include "afs_util.h"