summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2010-04-20 18:41:49 -0400
committerNalin Dahyabhai <nalin@redhat.com>2010-04-20 18:41:49 -0400
commit25304d87f30ebcc5f6382f89d5f99b498dd7ceef (patch)
treeedb58edf61dd8075a157afdef5dccd5ebbb02938
parentb565288313038041fdf86bbb0c7e3fafa84d71b7 (diff)
downloadpam_rps-25304d87f30ebcc5f6382f89d5f99b498dd7ceef.tar.gz
pam_rps-25304d87f30ebcc5f6382f89d5f99b498dd7ceef.tar.xz
pam_rps-25304d87f30ebcc5f6382f89d5f99b498dd7ceef.zip
- finish settling on a licensepam_rps-0.1
- finish sorting out what from PAM is probably not portable - use LT_INIT instead of AC_PROG_LIBTOOL
-rw-r--r--LICENSE33
-rw-r--r--configure.ac6
-rw-r--r--src/pam_rps.c43
3 files changed, 57 insertions, 25 deletions
diff --git a/LICENSE b/LICENSE
index 593ebf6..8d458ed 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,12 +1,27 @@
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
-1. Redistributions of source code must retain the above copyright
- notice, and the entire permission notice in its entirety,
- including the disclaimer of warranties.
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-3. The name of the author may not be used to endorse or promote
- products derived from this software without specific prior
- written permission.
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+* Neither the name of Red Hat, Inc., nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/configure.ac b/configure.ac
index aee52c8..e6eed7a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,8 +4,10 @@ AC_PROG_CC
if test x$GCC = xyes ; then
CFLAGS="$CFLAGS -Wall -Wextra"
fi
-AC_PROG_LIBTOOL
+LT_INIT(disable-static)
AM_MAINTAINER_MODE
-AC_CHECK_HEADERS(security/pam_modules.h)
+AC_CHECK_HEADERS(security/pam_modules.h security/pam_ext.h)
+AC_CHECK_FUNC(pam_get_item,,AC_CHECK_LIB(pam,pam_get_item))
+AC_CHECK_FUNCS(pam_prompt pam_syslog)
AC_CONFIG_HEADER(src/config.h)
AC_OUTPUT(Makefile src/Makefile src/pam_rps.8)
diff --git a/src/pam_rps.c b/src/pam_rps.c
index 9b8646e..b3e6ddb 100644
--- a/src/pam_rps.c
+++ b/src/pam_rps.c
@@ -1,18 +1,33 @@
/*
- * Copyright (c) 2003,2010 Red Hat, Inc.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, and the entire permission notice in its entirety,
- * including the disclaimer of warranties.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. The name of the author may not be used to endorse or promote
- * products derived from this software without specific prior
- * written permission.
+ Copyright (c) 2003,2010 Red Hat, Inc.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+ * Neither the name of Red Hat, Inc., nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H