Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpam adjust for new openpam



details:   https://anonhg.NetBSD.org/src/rev/69ff165408c0
branches:  trunk
changeset: 785910:69ff165408c0
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 06 02:20:49 2013 +0000

description:
adjust for new openpam

diffstat:

 lib/libpam/Makefile.inc    |    4 +-
 lib/libpam/libpam/Makefile |   15 +++-
 lib/libpam/libpam/config.h |  156 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 171 insertions(+), 4 deletions(-)

diffs (237 lines):

diff -r a3c490ad0d34 -r 69ff165408c0 lib/libpam/Makefile.inc
--- a/lib/libpam/Makefile.inc   Sat Apr 06 02:20:24 2013 +0000
+++ b/lib/libpam/Makefile.inc   Sat Apr 06 02:20:49 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.15 2012/01/27 08:45:10 jnemeth Exp $
+# $NetBSD: Makefile.inc,v 1.16 2013/04/06 02:20:49 christos Exp $
 # Copyright 1998 Juniper Networks, Inc.
 # All rights reserved.
 #
@@ -48,7 +48,7 @@
 
 # Define the shared library version here.  libpam and the modules share a
 # version, and we need these variables early for module install rules.
-SHLIB_MAJOR=   3
+SHLIB_MAJOR=   4
 SHLIB_MINOR=   0
 
 # openpam requires the files to be owned by root
diff -r a3c490ad0d34 -r 69ff165408c0 lib/libpam/libpam/Makefile
--- a/lib/libpam/libpam/Makefile        Sat Apr 06 02:20:24 2013 +0000
+++ b/lib/libpam/libpam/Makefile        Sat Apr 06 02:20:49 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2011/12/25 23:18:26 christos Exp $
+# $NetBSD: Makefile,v 1.15 2013/04/06 02:20:49 christos Exp $
 #-
 # Copyright (c) 1998 Juniper Networks, Inc.
 # All rights reserved.
@@ -48,7 +48,7 @@
 # 233: Struct/union never defined
 LINTFLAGS+= -Sw -X 233
 
-CPPFLAGS+= -DLIB_MAJ=${SHLIB_MAJOR} -DHAVE_STRLCPY
+CPPFLAGS+= -DLIB_MAJ=${SHLIB_MAJOR} -DHAVE_CONFIG_H -I${.CURDIR}
 
 SRCS=  openpam_borrow_cred.c \
        openpam_check_owner_perms.c \
@@ -56,16 +56,22 @@
        openpam_constants.c \
        openpam_dispatch.c \
        openpam_dynamic.c \
+       openpam_features.c \
        openpam_findenv.c \
        openpam_free_data.c \
        openpam_free_envlist.c \
+       openpam_get_feature.c \
        openpam_get_option.c \
        openpam_load.c \
        openpam_log.c \
        openpam_nullconv.c \
        openpam_readline.c \
+       openpam_readlinev.c \
+       openpam_readword.c \
        openpam_restore_cred.c \
+       openpam_set_feature.c \
        openpam_set_option.c \
+       openpam_straddch.c \
        openpam_subst.c \
        openpam_ttyconv.c \
        pam_acct_mgmt.c \
@@ -101,12 +107,17 @@
        openpam_borrow_cred.3 \
        openpam_free_data.3 \
        openpam_free_envlist.3 \
+       openpam_get_feature.3 \
        openpam_get_option.3 \
        openpam_log.3 \
        openpam_nullconv.3 \
        openpam_readline.3 \
+       openpam_readlinev.3 \
+       openpam_readword.3 \
        openpam_restore_cred.3 \
+       openpam_set_feature.3 \
        openpam_set_option.3 \
+       openpam_straddch.3 \
        openpam_subst.3 \
        openpam_ttyconv.3 \
        pam.3 \
diff -r a3c490ad0d34 -r 69ff165408c0 lib/libpam/libpam/config.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libpam/libpam/config.h        Sat Apr 06 02:20:49 2013 +0000
@@ -0,0 +1,156 @@
+/* config.h.  Generated from config.h.in by configure.  */
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* Whether loading unversioned modules support is disabled */
+/* #undef DISABLE_UNVERSIONED_MODULES */
+
+/* Define to 1 if you have the <crypt.h> header file. */
+/* #undef HAVE_CRYPT_H */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the `fdlopen' function. */
+/* #undef HAVE_FDLOPEN */
+
+/* Define to 1 if you have the `fpurge' function. */
+#define HAVE_FPURGE 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the `crypt' library (-lcrypt). */
+#define HAVE_LIBCRYPT 1
+
+/* Define to 1 if you have the `dl' library (-ldl). */
+/* #undef HAVE_LIBDL */
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the `strlcat' function. */
+#define HAVE_STRLCAT 1
+
+/* Define to 1 if you have the `strlcmp' function. */
+/* #undef HAVE_STRLCMP */
+
+/* Define to 1 if you have the `strlcpy' function. */
+#define HAVE_STRLCPY 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+#ifndef __NetBSD__
+/* OpenPAM library major number */
+#define LIB_MAJ 2
+#endif
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+   */
+#define LT_OBJDIR ".libs/"
+
+/* Turn debugging on by default */
+/* #undef OPENPAM_DEBUG */
+
+#ifndef __NetBSD__
+/* OpenPAM modules directory */
+#define OPENPAM_MODULES_DIR "${exec_prefix}/lib/"
+#endif
+
+/* Name of package */
+#define PACKAGE "openpam"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "des%des.no@localhost"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "OpenPAM"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "OpenPAM 20120526"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "openpam"
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "20120526"
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Enable extensions on AIX 3, Interix.  */
+#ifndef _ALL_SOURCE
+# define _ALL_SOURCE 1
+#endif
+/* Enable GNU extensions on systems that have them.  */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE 1
+#endif
+/* Enable threading extensions on Solaris.  */
+#ifndef _POSIX_PTHREAD_SEMANTICS
+# define _POSIX_PTHREAD_SEMANTICS 1
+#endif
+/* Enable extensions on HP NonStop.  */
+#ifndef _TANDEM_SOURCE
+# define _TANDEM_SOURCE 1
+#endif
+/* Enable general extensions on Solaris.  */
+#ifndef __EXTENSIONS__
+# define __EXTENSIONS__ 1
+#endif
+
+
+/* Version number of package */
+#define VERSION "20120526"
+
+/* Define to 1 if on MINIX. */
+/* #undef _MINIX */
+
+/* Define to 2 if the system does not provide POSIX.1 features except with
+   this defined. */
+/* #undef _POSIX_1_SOURCE */
+
+/* Define to 1 if you need to in order for `stat' and other things to work. */
+/* #undef _POSIX_SOURCE */
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
+
+/* Define to the equivalent of the C99 'restrict' keyword, or to
+   nothing if this is not supported.  Do not define if restrict is
+   supported directly.  */
+#define restrict __restrict
+/* Work around a bug in Sun C++: it does not support _Restrict or
+   __restrict__, even though the corresponding Sun C compiler ends up with
+   "#define restrict _Restrict" or "#define restrict __restrict__" in the
+   previous line.  Perhaps some future version of Sun C++ will work with
+   restrict; if so, hopefully it defines __RESTRICT like Sun C does.  */
+#if defined __SUNPRO_CC && !defined __RESTRICT
+# define _Restrict
+# define __restrict__
+#endif
+
+/* Define to empty if the keyword `volatile' does not work. Warning: valid
+   code using `volatile' can become incorrect without. Disable with care. */
+/* #undef volatile */



Home | Main Index | Thread Index | Old Index