diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | auth-pam.c | 6 | ||||
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | includes.h | 4 |
4 files changed, 20 insertions, 5 deletions
@@ -2,6 +2,8 @@ | |||
2 | - (djm) OSX/Darwin needs BIND_8_COMPAT to build getrrsetbyname. Report from | 2 | - (djm) OSX/Darwin needs BIND_8_COMPAT to build getrrsetbyname. Report from |
3 | jakob@ | 3 | jakob@ |
4 | - (djm) Remove useless DNS support configure summary message. from jakob@ | 4 | - (djm) Remove useless DNS support configure summary message. from jakob@ |
5 | - (djm) OSX/Darwin put the PAM headers in a different place, detect this. | ||
6 | Report from jakob@ | ||
5 | 7 | ||
6 | 20031231 | 8 | 20031231 |
7 | - (dtucker) OpenBSD CVS Sync | 9 | - (dtucker) OpenBSD CVS Sync |
@@ -1642,4 +1644,4 @@ | |||
1642 | - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. | 1644 | - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. |
1643 | Report from murple@murple.net, diagnosis from dtucker@zip.com.au | 1645 | Report from murple@murple.net, diagnosis from dtucker@zip.com.au |
1644 | 1646 | ||
1645 | $Id: ChangeLog,v 1.3160 2004/01/02 06:53:04 djm Exp $ | 1647 | $Id: ChangeLog,v 1.3161 2004/01/02 07:01:30 djm Exp $ |
diff --git a/auth-pam.c b/auth-pam.c index 9edf2c54e..31e1999f0 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -31,10 +31,14 @@ | |||
31 | 31 | ||
32 | /* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */ | 32 | /* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */ |
33 | #include "includes.h" | 33 | #include "includes.h" |
34 | RCSID("$Id: auth-pam.c,v 1.86 2003/12/18 05:08:59 dtucker Exp $"); | 34 | RCSID("$Id: auth-pam.c,v 1.87 2004/01/02 07:01:31 djm Exp $"); |
35 | 35 | ||
36 | #ifdef USE_PAM | 36 | #ifdef USE_PAM |
37 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
37 | #include <security/pam_appl.h> | 38 | #include <security/pam_appl.h> |
39 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
40 | #include <pam/pam_appl.h> | ||
41 | #endif | ||
38 | 42 | ||
39 | #include "auth.h" | 43 | #include "auth.h" |
40 | #include "auth-pam.h" | 44 | #include "auth-pam.h" |
diff --git a/configure.ac b/configure.ac index dc81dafe1..9127489de 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.181 2004/01/02 06:53:04 djm Exp $ | 1 | # $Id: configure.ac,v 1.182 2004/01/02 07:01:31 djm Exp $ |
2 | 2 | ||
3 | AC_INIT | 3 | AC_INIT |
4 | AC_CONFIG_SRCDIR([ssh.c]) | 4 | AC_CONFIG_SRCDIR([ssh.c]) |
@@ -499,7 +499,7 @@ int main(){exit(0);} | |||
499 | AC_CHECK_HEADERS(bstring.h crypt.h endian.h features.h floatingpoint.h \ | 499 | AC_CHECK_HEADERS(bstring.h crypt.h endian.h features.h floatingpoint.h \ |
500 | getopt.h glob.h ia.h lastlog.h limits.h login.h \ | 500 | getopt.h glob.h ia.h lastlog.h limits.h login.h \ |
501 | login_cap.h maillock.h netdb.h netgroup.h \ | 501 | login_cap.h maillock.h netdb.h netgroup.h \ |
502 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | 502 | netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \ |
503 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | 503 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ |
504 | strings.h sys/strtio.h sys/audit.h sys/bitypes.h sys/bsdtty.h \ | 504 | strings.h sys/strtio.h sys/audit.h sys/bitypes.h sys/bsdtty.h \ |
505 | sys/cdefs.h sys/mman.h sys/pstat.h sys/select.h sys/stat.h \ | 505 | sys/cdefs.h sys/mman.h sys/pstat.h sys/select.h sys/stat.h \ |
@@ -929,7 +929,8 @@ AC_ARG_WITH(pam, | |||
929 | [ --with-pam Enable PAM support ], | 929 | [ --with-pam Enable PAM support ], |
930 | [ | 930 | [ |
931 | if test "x$withval" != "xno" ; then | 931 | if test "x$withval" != "xno" ; then |
932 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then | 932 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ |
933 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
933 | AC_MSG_ERROR([PAM headers not found]) | 934 | AC_MSG_ERROR([PAM headers not found]) |
934 | fi | 935 | fi |
935 | 936 | ||
@@ -958,7 +959,11 @@ if test "x$PAM_MSG" = "xyes" ; then | |||
958 | AC_TRY_COMPILE( | 959 | AC_TRY_COMPILE( |
959 | [ | 960 | [ |
960 | #include <stdlib.h> | 961 | #include <stdlib.h> |
962 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
961 | #include <security/pam_appl.h> | 963 | #include <security/pam_appl.h> |
964 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
965 | #include <pam/pam_appl.h> | ||
966 | #endif | ||
962 | ], | 967 | ], |
963 | [(void)pam_strerror((pam_handle_t *)NULL, -1);], | 968 | [(void)pam_strerror((pam_handle_t *)NULL, -1);], |
964 | [AC_MSG_RESULT(no)], | 969 | [AC_MSG_RESULT(no)], |
diff --git a/includes.h b/includes.h index 033cd91fa..ac9a950e0 100644 --- a/includes.h +++ b/includes.h | |||
@@ -147,7 +147,11 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } | |||
147 | # include <rpc/types.h> /* For INADDR_LOOPBACK */ | 147 | # include <rpc/types.h> /* For INADDR_LOOPBACK */ |
148 | #endif | 148 | #endif |
149 | #ifdef USE_PAM | 149 | #ifdef USE_PAM |
150 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
150 | # include <security/pam_appl.h> | 151 | # include <security/pam_appl.h> |
152 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
153 | # include <pam/pam_appl.h> | ||
154 | #endif | ||
151 | #endif | 155 | #endif |
152 | #ifdef HAVE_READPASSPHRASE_H | 156 | #ifdef HAVE_READPASSPHRASE_H |
153 | # include <readpassphrase.h> | 157 | # include <readpassphrase.h> |