pam_set_mapped_authtok.c revision 91094
1194178Sed/*-
2194178Sed * Copyright (c) 2002 Networks Associates Technologies, Inc.
3194178Sed * All rights reserved.
4194178Sed *
5194178Sed * This software was developed for the FreeBSD Project by ThinkSec AS and
6194178Sed * NAI Labs, the Security Research Division of Network Associates, Inc.
7194178Sed * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8194178Sed * DARPA CHATS research program.
9194178Sed *
10194178Sed * Redistribution and use in source and binary forms, with or without
11194178Sed * modification, are permitted provided that the following conditions
12194178Sed * are met:
13194178Sed * 1. Redistributions of source code must retain the above copyright
14194178Sed *    notice, this list of conditions and the following disclaimer.
15194178Sed * 2. Redistributions in binary form must reproduce the above copyright
16194178Sed *    notice, this list of conditions and the following disclaimer in the
17194178Sed *    documentation and/or other materials provided with the distribution.
18194178Sed * 3. The name of the author may not be used to endorse or promote
19194178Sed *    products derived from this software without specific prior written
20194178Sed *    permission.
21194178Sed *
22194178Sed * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23194612Sed * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24194178Sed * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25194178Sed * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
26194178Sed * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27194612Sed * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28194612Sed * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29194178Sed * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30198892Srdivacky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31194178Sed * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32194178Sed * SUCH DAMAGE.
33212904Sdim *
34194178Sed * $Id$
35194178Sed */
36194178Sed
37194178Sed#include <security/pam_appl.h>
38194178Sed
39194178Sedint
40194178Sedpam_set_mapped_authtok(pam_handle_t *pamh,
41194178Sed	const char *target_module_username,
42194178Sed	size_t target_authtok_len,
43212904Sdim	unsigned char *target_module_authtok,
44212904Sdim	const char *target_module_type,
45194178Sed	const char *target_authn_domain)
46194178Sed{
47194178Sed
48194178Sed	return (PAM_SYSTEM_ERR);
49194178Sed}
50194178Sed