~ubuntu-branches/ubuntu/lucid/openssh/lucid

« back to all changes in this revision

Viewing changes to openbsd-compat/port-aix.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-10-10 20:10:01 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051010201001-rno2f5bno6e6wo6t
Tags: upstream-4.1p1
ImportĀ upstreamĀ versionĀ 4.1p1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: port-aix.h,v 1.21 2004/08/14 14:09:12 dtucker Exp $ */
 
1
/* $Id: port-aix.h,v 1.25 2005/03/21 11:46:34 dtucker Exp $ */
2
2
 
3
3
/*
4
4
 *
27
27
 
28
28
#ifdef _AIX
29
29
 
 
30
#ifdef HAVE_SYS_SOCKET_H
 
31
# include <sys/socket.h>
 
32
#endif
 
33
#ifdef HAVE_UNISTD_H
 
34
# include <unistd.h>    /* for seteuid() */
 
35
#endif
 
36
 
30
37
#ifdef WITH_AIXAUTHENTICATE
31
38
# include <login.h>
32
39
# include <userpw.h>
36
43
# include <usersec.h>
37
44
#endif
38
45
 
 
46
#include "buffer.h"
 
47
 
 
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 *);
 
52
#endif
 
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 **);
 
56
#endif
 
57
#if (HAVE_DECL_LOGINFAILED == 0)
 
58
int loginfailed(char *, char *, char *);
 
59
#endif
 
60
#if (HAVE_DECL_LOGINRESTRICTIONS == 0)
 
61
int loginrestrictions(char *, int, char *, char **);
 
62
#endif
 
63
#if (HAVE_DECL_LOGINSUCCESS == 0)
 
64
int loginsuccess(char *, char *, char *, char **);
 
65
#endif
 
66
#if (HAVE_DECL_PASSWDEXPIRED == 0)
 
67
int passwdexpired(char *, char **);
 
68
#endif
 
69
 
39
70
/* Some versions define r_type in the above headers, which causes a conflict */
40
71
#ifdef r_type
41
72
# undef r_type
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 *);
72
102
#endif
73
103
 
74
104
void aix_setauthdb(const char *);
75
105
void aix_restoreauthdb(void);
76
106
void aix_remove_embedded_newlines(char *);
 
107
 
 
108
#if defined(AIX_GETNAMEINFO_HACK) && !defined(BROKEN_GETADDRINFO)
 
109
# ifdef getnameinfo
 
110
#  undef getnameinfo
 
111
# endif
 
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))
 
115
#endif
 
116
 
77
117
#endif /* _AIX */