Deleted Added
full compact
pam_get_authtok.c (94706) pam_get_authtok.c (95908)
1/*-
2 * Copyright (c) 2002 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by ThinkSec AS and
6 * NAI Labs, the Security Research Division of Network Associates, Inc.
7 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8 * DARPA CHATS research program.

--- 17 unchanged lines hidden (view full) ---

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
1/*-
2 * Copyright (c) 2002 Networks Associates Technology, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by ThinkSec AS and
6 * NAI Labs, the Security Research Division of Network Associates, Inc.
7 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8 * DARPA CHATS research program.

--- 17 unchanged lines hidden (view full) ---

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $P4: //depot/projects/openpam/lib/pam_get_authtok.c#16 $
34 * $P4: //depot/projects/openpam/lib/pam_get_authtok.c#17 $
35 */
36
37#include <sys/param.h>
38
39#include <stdlib.h>
40
41#include <security/pam_appl.h>
42#include <security/openpam.h>

--- 97 unchanged lines hidden (view full) ---

140/**
141 * The =pam_get_authtok function returns the cached authentication token,
142 * or prompts the user if no token is currently cached. Either way, a
143 * pointer to the authentication token is stored in the location pointed
144 * to by the =authtok argument.
145 *
146 * The =item argument must have one of the following values:
147 *
35 */
36
37#include <sys/param.h>
38
39#include <stdlib.h>
40
41#include <security/pam_appl.h>
42#include <security/openpam.h>

--- 97 unchanged lines hidden (view full) ---

140/**
141 * The =pam_get_authtok function returns the cached authentication token,
142 * or prompts the user if no token is currently cached. Either way, a
143 * pointer to the authentication token is stored in the location pointed
144 * to by the =authtok argument.
145 *
146 * The =item argument must have one of the following values:
147 *
148 * =PAM_AUTHTOK
148 * =PAM_AUTHTOK:
149 * Returns the current authentication token, or the new token
150 * when changing authentication tokens.
149 * Returns the current authentication token, or the new token
150 * when changing authentication tokens.
151 * =PAM_OLDAUTHTOK
151 * =PAM_OLDAUTHTOK:
152 * Returns the previous authentication token when changing
153 * authentication tokens.
154 *
155 * The =prompt argument specifies a prompt to use if no token is cached.
156 * If it is =NULL, the =PAM_AUTHTOK_PROMPT or =PAM_OLDAUTHTOK_PROMPT item,
157 * as appropriate, will be used. If that item is also =NULL, a hardcoded
158 * default prompt will be used.
159 *
160 * If =item is set to =PAM_AUTHTOK and there is a non-null =PAM_OLDAUTHTOK
161 * item, =pam_get_authtok will ask the user to confirm the new token by
162 * retyping it. If there is a mismatch, =pam_get_authtok will return
163 * =PAM_TRY_AGAIN.
164 *
165 * >pam_get_item
166 * >pam_get_user
167 */
152 * Returns the previous authentication token when changing
153 * authentication tokens.
154 *
155 * The =prompt argument specifies a prompt to use if no token is cached.
156 * If it is =NULL, the =PAM_AUTHTOK_PROMPT or =PAM_OLDAUTHTOK_PROMPT item,
157 * as appropriate, will be used. If that item is also =NULL, a hardcoded
158 * default prompt will be used.
159 *
160 * If =item is set to =PAM_AUTHTOK and there is a non-null =PAM_OLDAUTHTOK
161 * item, =pam_get_authtok will ask the user to confirm the new token by
162 * retyping it. If there is a mismatch, =pam_get_authtok will return
163 * =PAM_TRY_AGAIN.
164 *
165 * >pam_get_item
166 * >pam_get_user
167 */