36
43
# include <usersec.h>
48
/* These should be in the system headers but are not. */
49
int usrinfo(int, char *, int);
50
#if (HAVE_DECL_SETAUTHDB == 0)
51
int setauthdb(const char *, char *);
53
/* these may or may not be in the headers depending on the version */
54
#if (HAVE_DECL_AUTHENTICATE == 0)
55
int authenticate(char *, char *, int *, char **);
57
#if (HAVE_DECL_LOGINFAILED == 0)
58
int loginfailed(char *, char *, char *);
60
#if (HAVE_DECL_LOGINRESTRICTIONS == 0)
61
int loginrestrictions(char *, int, char *, char **);
63
#if (HAVE_DECL_LOGINSUCCESS == 0)
64
int loginsuccess(char *, char *, char *, char **);
66
#if (HAVE_DECL_PASSWDEXPIRED == 0)
67
int passwdexpired(char *, char **);
39
70
/* Some versions define r_type in the above headers, which causes a conflict */
64
95
#ifdef WITH_AIXAUTHENTICATE
65
96
# define CUSTOM_SYS_AUTH_PASSWD 1
66
97
# define CUSTOM_SYS_AUTH_ALLOWED_USER 1
67
int sys_auth_allowed_user(struct passwd *);
98
int sys_auth_allowed_user(struct passwd *, Buffer *);
68
99
# define CUSTOM_SYS_AUTH_RECORD_LOGIN 1
69
int sys_auth_record_login(const char *, const char *, const char *);
100
int sys_auth_record_login(const char *, const char *, const char *, Buffer *);
70
101
# define CUSTOM_FAILED_LOGIN 1
71
void record_failed_login(const char *, const char *);
74
104
void aix_setauthdb(const char *);
75
105
void aix_restoreauthdb(void);
76
106
void aix_remove_embedded_newlines(char *);
108
#if defined(AIX_GETNAMEINFO_HACK) && !defined(BROKEN_GETADDRINFO)
112
int sshaix_getnameinfo(const struct sockaddr *, size_t, char *, size_t,
113
char *, size_t, int);
114
# define getnameinfo(a,b,c,d,e,f,g) (sshaix_getnameinfo(a,b,c,d,e,f,g))