1170754Sdelphij/*-
2170754Sdelphij * Copyright (c) 2002-2003 Networks Associates Technology, Inc.
3170754Sdelphij * Copyright (c) 2004-2011 Dag-Erling Sm��rgrav
4170754Sdelphij * All rights reserved.
5170754Sdelphij *
6170754Sdelphij * This software was developed for the FreeBSD Project by ThinkSec AS and
7170754Sdelphij * Network Associates Laboratories, the Security Research Division of
8170754Sdelphij * Network Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
9170754Sdelphij * ("CBOSS"), as part of the DARPA CHATS research program.
10170754Sdelphij *
11170754Sdelphij * Redistribution and use in source and binary forms, with or without
12170754Sdelphij * modification, are permitted provided that the following conditions
13170754Sdelphij * are met:
14170754Sdelphij * 1. Redistributions of source code must retain the above copyright
15170754Sdelphij *    notice, this list of conditions and the following disclaimer.
16170754Sdelphij * 2. Redistributions in binary form must reproduce the above copyright
17170754Sdelphij *    notice, this list of conditions and the following disclaimer in the
18170754Sdelphij *    documentation and/or other materials provided with the distribution.
19170754Sdelphij * 3. The name of the author may not be used to endorse or promote
20170754Sdelphij *    products derived from this software without specific prior written
21170754Sdelphij *    permission.
22170754Sdelphij *
23170754Sdelphij * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24170754Sdelphij * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25170754Sdelphij * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26170754Sdelphij * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27170754Sdelphij * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28170754Sdelphij * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29170754Sdelphij * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30170754Sdelphij * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31170754Sdelphij * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32170754Sdelphij * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33170754Sdelphij * SUCH DAMAGE.
34170754Sdelphij *
35170754Sdelphij * $Id: pam_sm_chauthtok.c 648 2013-03-05 17:54:27Z des $
36170754Sdelphij */
37170754Sdelphij
38170754Sdelphij#ifdef HAVE_CONFIG_H
39170754Sdelphij# include "config.h"
40170754Sdelphij#endif
41170754Sdelphij
42170754Sdelphij#include <sys/param.h>
43170754Sdelphij
44170754Sdelphij#include <security/pam_appl.h>
45170754Sdelphij#include <security/pam_modules.h>
46170754Sdelphij
47170754Sdelphij/*
48170754Sdelphij * XSSO 4.2.2
49170754Sdelphij * XSSO 6 page 72
50170754Sdelphij *
51170754Sdelphij * Service module implementation for pam_chauthtok
52170754Sdelphij */
53170754Sdelphij
54170754Sdelphijint
55170754Sdelphijpam_sm_chauthtok(pam_handle_t *pamh,
56170754Sdelphij	int flags,
57170754Sdelphij	int argc,
58170754Sdelphij	const char **argv)
59170754Sdelphij{
60170754Sdelphij
61170754Sdelphij	ENTER();
62170754Sdelphij	RETURNC(PAM_SYSTEM_ERR);
63170754Sdelphij}
64170754Sdelphij
65170754Sdelphij/*
66170754Sdelphij * Error codes:
67170754Sdelphij *
68170754Sdelphij *	PAM_SERVICE_ERR
69 *	PAM_SYSTEM_ERR
70 *	PAM_BUF_ERR
71 *	PAM_CONV_ERR
72 *	PAM_PERM_DENIED
73 *	PAM_IGNORE
74 *	PAM_ABORT
75 *
76 *	PAM_PERM_DENIED
77 *	PAM_AUTHTOK_ERR
78 *	PAM_AUTHTOK_RECOVERY_ERR
79 *	PAM_AUTHTOK_LOCK_BUSY
80 *	PAM_AUTHTOK_DISABLE_AGING
81 *	PAM_TRY_AGAIN
82 */
83
84/**
85 * The =pam_sm_chauthtok function is the service module's implementation
86 * of the =pam_chauthtok API function.
87 *
88 * When the application calls =pam_chauthtok, the service function is
89 * called twice, first with the =PAM_PRELIM_CHECK flag set and then again
90 * with the =PAM_UPDATE_AUTHTOK flag set.
91 */
92