pam_get_mapped_authtok.c revision 255369
1235427Sdelphij/*-
2235427Sdelphij * Copyright (c) 2002-2003 Networks Associates Technology, Inc.
3235427Sdelphij * Copyright (c) 2004-2011 Dag-Erling Sm��rgrav
4235427Sdelphij * All rights reserved.
5235427Sdelphij *
6235427Sdelphij * This software was developed for the FreeBSD Project by ThinkSec AS and
7235427Sdelphij * Network Associates Laboratories, the Security Research Division of
8235427Sdelphij * Network Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
9235427Sdelphij * ("CBOSS"), as part of the DARPA CHATS research program.
10235427Sdelphij *
11235427Sdelphij * Redistribution and use in source and binary forms, with or without
12235427Sdelphij * modification, are permitted provided that the following conditions
13235427Sdelphij * are met:
14235427Sdelphij * 1. Redistributions of source code must retain the above copyright
15235427Sdelphij *    notice, this list of conditions and the following disclaimer.
16235427Sdelphij * 2. Redistributions in binary form must reproduce the above copyright
17235427Sdelphij *    notice, this list of conditions and the following disclaimer in the
18235427Sdelphij *    documentation and/or other materials provided with the distribution.
19235427Sdelphij * 3. The name of the author may not be used to endorse or promote
20235427Sdelphij *    products derived from this software without specific prior written
21235427Sdelphij *    permission.
22235427Sdelphij *
23235427Sdelphij * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24235427Sdelphij * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25235427Sdelphij * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26235427Sdelphij * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27235427Sdelphij * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28235427Sdelphij * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29235427Sdelphij * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30235427Sdelphij * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31235427Sdelphij * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32235427Sdelphij * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33235427Sdelphij * SUCH DAMAGE.
34235427Sdelphij *
35235427Sdelphij * $Id: pam_get_mapped_authtok.c 437 2011-09-13 12:00:13Z des $
36235427Sdelphij */
37235427Sdelphij
38235427Sdelphij#ifdef HAVE_CONFIG_H
39235427Sdelphij# include "config.h"
40235427Sdelphij#endif
41235427Sdelphij
42235427Sdelphij#include <security/pam_appl.h>
43235427Sdelphij
44235427Sdelphij/*
45235427Sdelphij * XSSO 4.2.1
46235427Sdelphij * XSSO 6 page 48
47235427Sdelphij *
48235427Sdelphij * Get mapped password for the user
49235427Sdelphij */
50235427Sdelphij
51235427Sdelphijint
52235427Sdelphijpam_get_mapped_authtok(pam_handle_t *pamh,
53235427Sdelphij	const char *target_module_username,
54235427Sdelphij	const char *target_module_type,
55235427Sdelphij	const char *target_authn_domain,
56235427Sdelphij	size_t *target_authtok_len,
57235427Sdelphij	unsigned char **target_module_authtok)
58235427Sdelphij{
59235427Sdelphij
60235427Sdelphij	ENTER();
61235427Sdelphij	RETURNC(PAM_SYSTEM_ERR);
62235427Sdelphij}
63235427Sdelphij
64235427Sdelphij/*
65235427Sdelphij * NODOC
66235427Sdelphij */
67235427Sdelphij