]> git.armaanb.net Git - opendoas.git/blobdiff - doas.h
Handle empty argv
[opendoas.git] / doas.h
diff --git a/doas.h b/doas.h
index 3831dc7425f2e4cda6e45ea96157ce47af6cc26b..ecf0db222f7fc5101c940fdf39c02517429c9ad8 100644 (file)
--- a/doas.h
+++ b/doas.h
@@ -26,9 +26,11 @@ struct rule {
 };
 
 extern struct rule **rules;
-extern int nrules;
+extern size_t nrules;
 extern int parse_errors;
 
+extern const char *formerpath;
+
 struct passwd;
 
 char **prepenv(const struct rule *, const struct passwd *,
@@ -40,3 +42,16 @@ char **prepenv(const struct rule *, const struct passwd *,
 #define NOPASS         0x1
 #define KEEPENV                0x2
 #define PERSIST                0x4
+#define NOLOG          0x8
+#define INSULT         0x10
+
+int shadowauth(const char *, int);
+
+#ifdef USE_TIMESTAMP
+int timestamp_open(int *, int);
+int timestamp_set(int, int);
+int timestamp_clear(void);
+#endif
+
+const char * getinsult(void);
+void authfail(int);