summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-aix.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-02-15 21:45:57 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-02-15 21:45:57 +1100
commit691d5235ca9485877e8345269b1be4b2cf1be322 (patch)
tree7adbbdbb837a6d3d4953a6ea339ad9d9e6d289ce /openbsd-compat/port-aix.h
parentf04c3616756831fe987fe3e474c8c234c298e4cb (diff)
- (dtucker) [README.platform auth.c configure.ac loginrec.c
openbsd-compat/port-aix.c openbsd-compat/port-aix.h] Bug #835: enable IPv6 on AIX where possible (see README.platform for details) and work around a misfeature of AIX's getnameinfo. ok djm@
Diffstat (limited to 'openbsd-compat/port-aix.h')
-rw-r--r--openbsd-compat/port-aix.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/openbsd-compat/port-aix.h b/openbsd-compat/port-aix.h
index 751139004..cc7c43cda 100644
--- a/openbsd-compat/port-aix.h
+++ b/openbsd-compat/port-aix.h
@@ -1,4 +1,4 @@
1/* $Id: port-aix.h,v 1.22 2005/02/02 06:10:11 dtucker Exp $ */ 1/* $Id: port-aix.h,v 1.23 2005/02/15 10:45:58 dtucker Exp $ */
2 2
3/* 3/*
4 * 4 *
@@ -27,6 +27,10 @@
27 27
28#ifdef _AIX 28#ifdef _AIX
29 29
30#ifdef HAVE_SYS_SOCKET_H
31# include <sys/socket.h>
32#endif
33
30#ifdef WITH_AIXAUTHENTICATE 34#ifdef WITH_AIXAUTHENTICATE
31# include <login.h> 35# include <login.h>
32# include <userpw.h> 36# include <userpw.h>
@@ -36,6 +40,8 @@
36# include <usersec.h> 40# include <usersec.h>
37#endif 41#endif
38 42
43#include "buffer.h"
44
39/* Some versions define r_type in the above headers, which causes a conflict */ 45/* Some versions define r_type in the above headers, which causes a conflict */
40#ifdef r_type 46#ifdef r_type
41# undef r_type 47# undef r_type
@@ -64,13 +70,23 @@ void aix_usrinfo(struct passwd *);
64#ifdef WITH_AIXAUTHENTICATE 70#ifdef WITH_AIXAUTHENTICATE
65# define CUSTOM_SYS_AUTH_PASSWD 1 71# define CUSTOM_SYS_AUTH_PASSWD 1
66# define CUSTOM_SYS_AUTH_ALLOWED_USER 1 72# define CUSTOM_SYS_AUTH_ALLOWED_USER 1
67int sys_auth_allowed_user(struct passwd *); 73int sys_auth_allowed_user(struct passwd *, Buffer *);
68# define CUSTOM_SYS_AUTH_RECORD_LOGIN 1 74# define CUSTOM_SYS_AUTH_RECORD_LOGIN 1
69int sys_auth_record_login(const char *, const char *, const char *); 75int sys_auth_record_login(const char *, const char *, const char *, Buffer *);
70# define CUSTOM_FAILED_LOGIN 1 76# define CUSTOM_FAILED_LOGIN 1
71#endif 77#endif
72 78
73void aix_setauthdb(const char *); 79void aix_setauthdb(const char *);
74void aix_restoreauthdb(void); 80void aix_restoreauthdb(void);
75void aix_remove_embedded_newlines(char *); 81void aix_remove_embedded_newlines(char *);
82
83#if defined(AIX_GETNAMEINFO_HACK) && !defined(BROKEN_GETADDRINFO)
84# ifdef getnameinfo
85# undef getnameinfo
86# endif
87int sshaix_getnameinfo(const struct sockaddr *, size_t, char *, size_t,
88 char *, size_t, int);
89# define getnameinfo(a,b,c,d,e,f,g) (sshaix_getnameinfo(a,b,c,d,e,f,g))
90#endif
91
76#endif /* _AIX */ 92#endif /* _AIX */