29 #ifdef HAVE_SYS_SOCKET_H
30 # include <sys/socket.h>
37 int usrinfo(
int,
char *,
int);
38 #if defined(HAVE_DECL_SETAUTHDB) && (HAVE_DECL_SETAUTHDB == 0)
39 int setauthdb(
const char *,
char *);
42 #if defined(HAVE_DECL_AUTHENTICATE) && (HAVE_DECL_AUTHENTICATE == 0)
43 int authenticate(
char *,
char *,
int *,
char **);
45 #if defined(HAVE_DECL_LOGINFAILED) && (HAVE_DECL_LOGINFAILED == 0)
46 int loginfailed(
char *,
char *,
char *);
48 #if defined(HAVE_DECL_LOGINRESTRICTIONS) && (HAVE_DECL_LOGINRESTRICTIONS == 0)
49 int loginrestrictions(
char *,
int,
char *,
char **);
51 #if defined(HAVE_DECL_LOGINSUCCESS) && (HAVE_DECL_LOGINSUCCESS == 0)
52 int loginsuccess(
char *,
char *,
char *,
char **);
54 #if defined(HAVE_DECL_PASSWDEXPIRED) && (HAVE_DECL_PASSWDEXPIRED == 0)
55 int passwdexpired(
char *,
char **);
64 #if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP)
65 # define nanosleep(a,b) nsleep(a,b)
69 #ifdef HAVE_SYS_TIMERS_H
70 # include <sys/timers.h>
83 # define REGISTRY_SIZE 16
86 void aix_usrinfo(
struct passwd *);
88 #ifdef WITH_AIXAUTHENTICATE
89 # define CUSTOM_SYS_AUTH_PASSWD 1
90 # define CUSTOM_SYS_AUTH_ALLOWED_USER 1
91 int sys_auth_allowed_user(
struct passwd *,
struct sshbuf *);
92 # define CUSTOM_SYS_AUTH_RECORD_LOGIN 1
93 int sys_auth_record_login(
const char *,
const char *,
const char *,
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(
const 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 *);