pam_get_item.c (107937) | pam_get_item.c (110503) |
---|---|
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 * Network Associates Laboratories, the Security Research Division of 7 * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 8 * ("CBOSS"), as part of the 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 * Network Associates Laboratories, the Security Research Division of 7 * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 8 * ("CBOSS"), as part of the 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_item.c#14 $ | 34 * $P4: //depot/projects/openpam/lib/pam_get_item.c#15 $ |
35 */ 36 37#include <sys/param.h> 38 39#include <security/pam_appl.h> 40 41#include "openpam_impl.h" 42 | 35 */ 36 37#include <sys/param.h> 38 39#include <security/pam_appl.h> 40 41#include "openpam_impl.h" 42 |
43const char *_pam_item_name[PAM_NUM_ITEMS] = { 44 "(NO ITEM)", 45 "PAM_SERVICE", 46 "PAM_USER", 47 "PAM_TTY", 48 "PAM_RHOST", 49 "PAM_CONV", 50 "PAM_AUTHTOK", 51 "PAM_OLDAUTHTOK", 52 "PAM_RUSER", 53 "PAM_USER_PROMPT", 54 "PAM_REPOSITORY", 55 "PAM_AUTHTOK_PROMPT", 56 "PAM_OLDAUTHTOK_PROMPT" 57}; 58 |
|
43/* 44 * XSSO 4.2.1 45 * XSSO 6 page 46 46 * 47 * Get PAM information 48 */ 49 50int 51pam_get_item(pam_handle_t *pamh, 52 int item_type, 53 const void **item) 54{ 55 | 59/* 60 * XSSO 4.2.1 61 * XSSO 6 page 46 62 * 63 * Get PAM information 64 */ 65 66int 67pam_get_item(pam_handle_t *pamh, 68 int item_type, 69 const void **item) 70{ 71 |
56 ENTER(); | 72 ENTERI(item_type); |
57 if (pamh == NULL) 58 RETURNC(PAM_SYSTEM_ERR); 59 switch (item_type) { 60 case PAM_SERVICE: 61 case PAM_USER: 62 case PAM_AUTHTOK: 63 case PAM_OLDAUTHTOK: 64 case PAM_TTY: --- 61 unchanged lines hidden --- | 73 if (pamh == NULL) 74 RETURNC(PAM_SYSTEM_ERR); 75 switch (item_type) { 76 case PAM_SERVICE: 77 case PAM_USER: 78 case PAM_AUTHTOK: 79 case PAM_OLDAUTHTOK: 80 case PAM_TTY: --- 61 unchanged lines hidden --- |