pam_sm_set_mapped_authtok.c revision 115619
1236024Sraj/*- 2236024Sraj * Copyright (c) 2002-2003 Networks Associates Technology, Inc. 3236024Sraj * All rights reserved. 4236024Sraj * 5236024Sraj * This software was developed for the FreeBSD Project by ThinkSec AS and 6236024Sraj * Network Associates Laboratories, the Security Research Division of 7236024Sraj * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 8236024Sraj * ("CBOSS"), as part of the DARPA CHATS research program. 9236024Sraj * 10236024Sraj * Redistribution and use in source and binary forms, with or without 11236024Sraj * modification, are permitted provided that the following conditions 12236024Sraj * are met: 13236024Sraj * 1. Redistributions of source code must retain the above copyright 14236024Sraj * notice, this list of conditions and the following disclaimer. 15236024Sraj * 2. Redistributions in binary form must reproduce the above copyright 16236024Sraj * notice, this list of conditions and the following disclaimer in the 17236024Sraj * documentation and/or other materials provided with the distribution. 18236024Sraj * 3. The name of the author may not be used to endorse or promote 19236024Sraj * products derived from this software without specific prior written 20236024Sraj * permission. 21236024Sraj * 22236024Sraj * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 23236024Sraj * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24236024Sraj * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25236024Sraj * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 26236024Sraj * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27236024Sraj * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28236024Sraj * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29236024Sraj * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30236024Sraj * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31236024Sraj * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32236024Sraj * SUCH DAMAGE. 33236024Sraj * 34236024Sraj * $P4: //depot/projects/openpam/lib/pam_sm_set_mapped_authtok.c#6 $ 35236024Sraj */ 36236024Sraj 37236024Sraj#include <sys/param.h> 38236024Sraj 39236024Sraj#include <security/pam_appl.h> 40236024Sraj#include <security/pam_modules.h> 41236024Sraj 42236024Sraj/* 43236024Sraj * XSSO 4.2.2 44236024Sraj * XSSO 6 page 83 45236024Sraj * 46236024Sraj * Service module implementation for pam_set_mapped_authtok 47236024Sraj */ 48236024Sraj 49236024Srajint 50236024Srajpam_sm_set_mapped_authtok(pam_handle_t *pamh, 51236024Sraj char *target_module_username, 52236024Sraj size_t target_authtok_len, 53236024Sraj unsigned char *target_module_authtok, 54236024Sraj char *target_module_type, 55236024Sraj char *target_authn_domain, 56236024Sraj int argc, 57236024Sraj const char *argv) 58236024Sraj{ 59236024Sraj 60236024Sraj ENTER(); 61236024Sraj RETURNC(PAM_SYSTEM_ERR); 62236024Sraj} 63236024Sraj 64236024Sraj/* 65236024Sraj * NODOC 66236024Sraj */ 67236024Sraj