summaryrefslogtreecommitdiffstats
path: root/lib/pam_get_data.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2011-12-18 17:08:40 +0000
committerdes <des@FreeBSD.org>2011-12-18 17:08:40 +0000
commit9a25ed673db408d79135934ee39ea88142f9ed4d (patch)
tree685cc74eea09898d5b7b579838e8705bcad03ac8 /lib/pam_get_data.c
parent1b15b2817c3ed8a51b9d881b25bfa61bdfb0801a (diff)
downloadFreeBSD-src-9a25ed673db408d79135934ee39ea88142f9ed4d.zip
FreeBSD-src-9a25ed673db408d79135934ee39ea88142f9ed4d.tar.gz
Vendor import of OpenPAM Lycopsida.
Diffstat (limited to 'lib/pam_get_data.c')
-rw-r--r--lib/pam_get_data.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/pam_get_data.c b/lib/pam_get_data.c
index 0cceef0..1a8ba1d 100644
--- a/lib/pam_get_data.c
+++ b/lib/pam_get_data.c
@@ -1,6 +1,6 @@
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
- * Copyright (c) 2004-2007 Dag-Erling Smørgrav
+ * Copyright (c) 2004-2011 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@@ -32,9 +32,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pam_get_data.c 408 2007-12-21 11:36:24Z des $
+ * $Id: pam_get_data.c 444 2011-10-22 01:03:23Z des $
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <string.h>
#include <security/pam_appl.h>
@@ -80,6 +84,7 @@ pam_get_data(const pam_handle_t *pamh,
* context specified by the =pamh argument.
* A pointer to the object is stored in the location pointed to by the
* =data argument.
+ * If =pam_get_data fails, the =data argument is untouched.
*
* This function and its counterpart =pam_set_data are useful for managing
* data that are meaningful only to a particular service module.
OpenPOWER on IntegriCloud