summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-08-05 12:43:32 +1000
committerDamien Miller <djm@mindrot.org>2006-08-05 12:43:32 +1000
commit2ab323e0bd531926542784fdada06358d52cc020 (patch)
treef96935a4f45f968acd639702cf3344214bd329c7 /auth-pam.c
parent9ab00b44c17c89955bad6bf105e89b21c51bbe8e (diff)
downloadopenssh-git-2ab323e0bd531926542784fdada06358d52cc020.tar.gz
- (djm) [auth-pam.c defines.h] Move PAM related bits to auth-pam.c
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 6ce9db12..a67eaa30 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -71,6 +71,13 @@
# define sshpam_const const /* LinuxPAM, OpenPAM */
#endif
+/* Ambiguity in spec: is it an array of pointers or a pointer to an array? */
+#ifdef PAM_SUN_CODEBASE
+# define PAM_MSG_MEMBER(msg, n, member) ((*(msg))[(n)].member)
+#else
+# define PAM_MSG_MEMBER(msg, n, member) ((msg)[(n)]->member)
+#endif
+
#include "auth.h"
#include "auth-pam.h"
#include "buffer.h"