b264b200c7e747c1023d0e5a7c43f0757f2733e9
[oweals/cde.git] / cde / lib / pam / pam_modules / unix / unix_close_session.c
1 /* $XConsortium: unix_close_session.c /main/5 1996/05/09 04:33:38 drk $ */
2
3 /*
4  * Copyright (c) 1992-1995, by Sun Microsystems, Inc.
5  * All rights reserved.
6  */
7
8 #ident  "@(#)unix_close_session.c 1.26     95/12/12 SMI"
9
10 #include "unix_headers.h"
11
12 /*
13  * pam_sm_close_session - Terminate a PAM authenticated session
14  */
15
16 int
17 pam_sm_close_session(
18         pam_handle_t    *pamh,
19         int     flags,
20         int     argc,
21         const char      **argv)
22 {
23         int     i;
24         int     debug = 0;
25
26         for (i = 0; i < argc; i++) {
27                 if (strcasecmp(argv[i], "debug") == 0)
28                         debug = 1;
29                 else
30                         syslog(LOG_ERR, "illegal option %s", argv[i]);
31         }
32
33         return (PAM_SUCCESS);
34 }