X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=doas.h;h=c38fca2de968c017516d847c43b76768237c2384;hb=b82ffa68a6436ce3f4c4b480bc9c12ac284b0d99;hp=3831dc7425f2e4cda6e45ea96157ce47af6cc26b;hpb=01c658f8c45cb92a343be5f32aa6da70b2032168;p=opendoas.git diff --git a/doas.h b/doas.h index 3831dc7..c38fca2 100644 --- a/doas.h +++ b/doas.h @@ -29,6 +29,8 @@ extern struct rule **rules; extern int nrules; extern int parse_errors; +extern const char *formerpath; + struct passwd; char **prepenv(const struct rule *, const struct passwd *, @@ -40,3 +42,18 @@ char **prepenv(const struct rule *, const struct passwd *, #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