31 #ifdef HAVE_SYS_SOCKET_H 32 # include <sys/socket.h> 38 int usrinfo(
int,
char *,
int);
39 #if defined(HAVE_DECL_SETAUTHDB) && (HAVE_DECL_SETAUTHDB == 0) 40 int setauthdb(
const char *,
char *);
43 #if defined(HAVE_DECL_AUTHENTICATE) && (HAVE_DECL_AUTHENTICATE == 0) 44 int authenticate(
char *,
char *,
int *,
char **);
46 #if defined(HAVE_DECL_LOGINFAILED) && (HAVE_DECL_LOGINFAILED == 0) 47 int loginfailed(
char *,
char *,
char *);
49 #if defined(HAVE_DECL_LOGINRESTRICTIONS) && (HAVE_DECL_LOGINRESTRICTIONS == 0) 50 int loginrestrictions(
char *,
int,
char *,
char **);
52 #if defined(HAVE_DECL_LOGINSUCCESS) && (HAVE_DECL_LOGINSUCCESS == 0) 53 int loginsuccess(
char *,
char *,
char *,
char **);
55 #if defined(HAVE_DECL_PASSWDEXPIRED) && (HAVE_DECL_PASSWDEXPIRED == 0) 56 int passwdexpired(
char *,
char **);
65 #if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP) 66 # define nanosleep(a,b) nsleep(a,b) 70 #ifdef HAVE_SYS_TIMERS_H 71 # include <sys/timers.h> 84 # define REGISTRY_SIZE 16 87 void aix_usrinfo(
struct passwd *);
89 #ifdef WITH_AIXAUTHENTICATE 90 # define CUSTOM_SYS_AUTH_PASSWD 1 91 # define CUSTOM_SYS_AUTH_ALLOWED_USER 1 92 int sys_auth_allowed_user(
struct passwd *, Buffer *);
93 # define CUSTOM_SYS_AUTH_RECORD_LOGIN 1 94 int sys_auth_record_login(
const char *,
const char *,
const char *, Buffer *);
95 # define CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG 96 char *sys_auth_get_lastlogin_msg(
const char *, uid_t);
97 # define CUSTOM_FAILED_LOGIN 1 98 # if defined(S_AUTHDOMAIN) && defined (S_AUTHNAME) 99 # define USE_AIX_KRB_NAME 100 char *aix_krb5_get_principal_name(
char *);
104 void aix_setauthdb(
const char *);
105 void aix_restoreauthdb(
void);
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)) 121 #if !defined(HAVE_GETGROUPLIST) && defined(HAVE_GETGRSET) 122 # define HAVE_GETGROUPLIST 123 # define USE_GETGRSET 124 int getgrouplist(
const char *, gid_t, gid_t *,
int *);