]> git.armaanb.net Git - opendoas.git/blobdiff - doas.h
add support for the verified auth ioctls using 'persist' rules. ok deraadt henning
[opendoas.git] / doas.h
diff --git a/doas.h b/doas.h
index 88b2223462e3cede9f1dfc2e5f8c06a884e11e14..062c38725583446a49db2668af229f443a103fc6 100644 (file)
--- a/doas.h
+++ b/doas.h
@@ -1,20 +1,4 @@
-/* $OpenBSD: doas.h,v 1.3 2015/07/21 11:04:06 zhuk Exp $ */
-
-#include <sys/tree.h>
-
-struct envnode {
-       RB_ENTRY(envnode) node;
-       const char *key;
-       const char *value;
-};
-
-struct env {
-       RB_HEAD(envtree, envnode) root;
-       u_int count;
-};
-
-RB_PROTOTYPE(envtree, envnode, node, envcmp)
-
+/* $OpenBSD$ */
 struct rule {
        int action;
        int options;
@@ -31,12 +15,11 @@ extern int parse_errors;
 
 size_t arraylen(const char **);
 
-struct env *createenv(char **);
-struct env *filterenv(struct env *, struct rule *);
-char **flattenenv(struct env *);
+char **prepenv(struct rule *);
 
 #define PERMIT 1
 #define DENY   2
 
 #define NOPASS         0x1
 #define KEEPENV                0x2
+#define PERSIST                0x4