]> git.armaanb.net Git - opendoas.git/blobdiff - doas.h
Replace build/installation instructions with discouragements
[opendoas.git] / doas.h
diff --git a/doas.h b/doas.h
index 48069dbbace38d37580d61f6257398c9253a449f..a8aa41bee6b9ead7e6a8873436852fa2f7054046 100644 (file)
--- a/doas.h
+++ b/doas.h
@@ -26,10 +26,15 @@ struct rule {
 };
 
 extern struct rule **rules;
-extern int nrules;
+extern size_t nrules;
 extern int parse_errors;
 
-char **prepenv(const struct rule *);
+extern const char *formerpath;
+
+struct passwd;
+
+char **prepenv(const struct rule *, const struct passwd *,
+    const struct passwd *);
 
 #define PERMIT 1
 #define DENY   2
@@ -37,3 +42,18 @@ char **prepenv(const struct rule *);
 #define NOPASS         0x1
 #define KEEPENV                0x2
 #define PERSIST                0x4
+#define NOLOG          0x8
+
+#ifdef USE_PAM
+void pamauth(const char *, const char *, int, int, int);
+#endif
+
+#ifdef USE_SHADOW
+void shadowauth(const char *, int);
+#endif
+
+#ifdef USE_TIMESTAMP
+int timestamp_open(int *, int);
+int timestamp_set(int, int);
+int timestamp_clear(void);
+#endif