1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* gkr-pam.h - Common PAM definitions
3 
4    Copyright (C) 2007 Stef Walter
5 
6    The Gnome Keyring Library is free software; you can redistribute it and/or
7    modify it under the terms of the GNU Library General Public License as
8    published by the Free Software Foundation; either version 2 of the
9    License, or (at your option) any later version.
10 
11    The Gnome Keyring Library is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Library General Public License for more details.
15 
16    You should have received a copy of the GNU Library General Public
17    License along with the Gnome Library; see the file COPYING.LIB.  If not,
18    <http://www.gnu.org/licenses/>.
19 
20    Author: Stef Walter <stef@memberwebs.com>
21 */
22 
23 #ifndef GKRPAM_H_
24 #define GKRPAM_H_
25 
26 #include <pwd.h>
27 
28 #ifndef LOG_AUTHPRIV
29 #define LOG_AUTHPRIV    LOG_AUTH
30 #endif
31 
32 #define GKR_LOG_ERR     (LOG_ERR | LOG_AUTHPRIV)
33 #define GKR_LOG_WARN    (LOG_WARNING | LOG_AUTHPRIV)
34 #define GKR_LOG_NOTICE  (LOG_NOTICE | LOG_AUTHPRIV)
35 #define GKR_LOG_INFO    (LOG_INFO | LOG_AUTHPRIV)
36 
37 int       gkr_pam_client_run_operation (struct passwd *pwd, const char *socket,
38                                         int op, int argc, const char* argv[]);
39 
40 #endif /*GKRPAM_H_*/
41