summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..ef34cf3
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,43 @@
+#ifndef foocommonhfoo
+#define foocommonhfoo
+
+/***
+ This file is part of pam_dotfile.
+
+ pam_dotfile is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ pam_dotfile is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with pam_dotfile; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ USA
+***/
+
+#include <security/pam_modules.h>
+#include <security/_pam_macros.h>
+
+typedef struct context {
+ int opt_debug;
+ int opt_use_first_pass;
+ int opt_try_first_pass;
+ int opt_rootok;
+ int opt_nullok;
+ int opt_fork; // 0: auto; 1: fork; -1: nofork;
+ int opt_no_warn;
+ int opt_stat_only_home;
+#ifdef COMPAT05
+ int opt_nocompat05;
+#endif
+ const char *service;
+} context_t;
+
+int user_authentication(context_t *c, const char *username, const char *password);
+
+#endif