29 #ifdef HAVE_SYS_SOCKET_H 30 # include <sys/socket.h> 36 int usrinfo(
int,
char *,
int);
37 #if defined(HAVE_DECL_SETAUTHDB) && (HAVE_DECL_SETAUTHDB == 0) 38 int setauthdb(
const char *,
char *);
41 #if defined(HAVE_DECL_AUTHENTICATE) && (HAVE_DECL_AUTHENTICATE == 0) 42 int authenticate(
char *,
char *,
int *,
char **);
44 #if defined(HAVE_DECL_LOGINFAILED) && (HAVE_DECL_LOGINFAILED == 0) 45 int loginfailed(
char *,
char *,
char *);
47 #if defined(HAVE_DECL_LOGINRESTRICTIONS) && (HAVE_DECL_LOGINRESTRICTIONS == 0) 48 int loginrestrictions(
char *,
int,
char *,
char **);
50 #if defined(HAVE_DECL_LOGINSUCCESS) && (HAVE_DECL_LOGINSUCCESS == 0) 51 int loginsuccess(
char *,
char *,
char *,
char **);
53 #if defined(HAVE_DECL_PASSWDEXPIRED) && (HAVE_DECL_PASSWDEXPIRED == 0) 54 int passwdexpired(
char *,
char **);
63 #if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP) 64 # define nanosleep(a,b) nsleep(a,b) 68 #ifdef HAVE_SYS_TIMERS_H 69 # include <sys/timers.h> 82 # define REGISTRY_SIZE 16 85 void aix_usrinfo(
struct passwd *);
87 #ifdef WITH_AIXAUTHENTICATE 88 # define CUSTOM_SYS_AUTH_PASSWD 1 89 # define CUSTOM_SYS_AUTH_ALLOWED_USER 1 90 int sys_auth_allowed_user(
struct passwd *, Buffer *);
91 # define CUSTOM_SYS_AUTH_RECORD_LOGIN 1 92 int sys_auth_record_login(
const char *,
const char *,
const char *, Buffer *);
93 # define CUSTOM_SYS_AUTH_GET_LASTLOGIN_MSG 94 char *sys_auth_get_lastlogin_msg(
const char *, uid_t);
95 # define CUSTOM_FAILED_LOGIN 1 96 # if defined(S_AUTHDOMAIN) && defined (S_AUTHNAME) 97 # define USE_AIX_KRB_NAME 98 char *aix_krb5_get_principal_name(
char *);
102 void aix_setauthdb(
const char *);
103 void aix_restoreauthdb(
void);
104 void aix_remove_embedded_newlines(
char *);
106 #if defined(AIX_GETNAMEINFO_HACK) && !defined(BROKEN_GETADDRINFO) 110 int sshaix_getnameinfo(
const struct sockaddr *,
size_t,
char *,
size_t,
111 char *,
size_t,
int);
112 # define getnameinfo(a,b,c,d,e,f,g) (sshaix_getnameinfo(a,b,c,d,e,f,g)) 119 #if !defined(HAVE_GETGROUPLIST) && defined(HAVE_GETGRSET) 120 # define HAVE_GETGROUPLIST 121 # define USE_GETGRSET 122 int getgrouplist(
const char *, gid_t, gid_t *,
int *);