summaryrefslogtreecommitdiffstats
path: root/lib/pam_sm_chauthtok.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_sm_chauthtok.c
parent1b15b2817c3ed8a51b9d881b25bfa61bdfb0801a (diff)
downloadFreeBSD-src-9a25ed673db408d79135934ee39ea88142f9ed4d.zip
FreeBSD-src-9a25ed673db408d79135934ee39ea88142f9ed4d.tar.gz
Vendor import of OpenPAM Lycopsida.
Diffstat (limited to 'lib/pam_sm_chauthtok.c')
-rw-r--r--lib/pam_sm_chauthtok.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/pam_sm_chauthtok.c b/lib/pam_sm_chauthtok.c
index 2c41d6d..593344c 100644
--- a/lib/pam_sm_chauthtok.c
+++ b/lib/pam_sm_chauthtok.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_sm_chauthtok.c 408 2007-12-21 11:36:24Z des $
+ * $Id: pam_sm_chauthtok.c 466 2011-11-02 23:33:43Z des $
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <sys/param.h>
#include <security/pam_appl.h>
@@ -80,4 +84,8 @@ pam_sm_chauthtok(pam_handle_t *pamh,
/**
* The =pam_sm_chauthtok function is the service module's implementation
* of the =pam_chauthtok API function.
+ *
+ * When the application calls =pam_chauthtok, the service function is
+ * called twice, first with the =PAM_PRELIM_CHECK flag set and then again
+ * with the =PAM_UPDATE_AUTHTOK flag set.
*/
OpenPOWER on IntegriCloud