X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=doas.h;h=c38fca2de968c017516d847c43b76768237c2384;hb=29123f7c5b7cfb79419425ad4d2b7af153e06472;hp=5de73cc5f412e4bedecd3c665fbf8d1617cb6a2a;hpb=b7e6671371e489fb6607f9ab883ddeb03895e51d;p=opendoas.git diff --git a/doas.h b/doas.h index 5de73cc..c38fca2 100644 --- a/doas.h +++ b/doas.h @@ -29,11 +29,12 @@ extern struct rule **rules; extern int nrules; extern int parse_errors; -size_t arraylen(const char **); +extern const char *formerpath; -char **prepenv(struct rule *); +struct passwd; -int yyparse(void); +char **prepenv(const struct rule *, const struct passwd *, + const struct passwd *); #define PERMIT 1 #define DENY 2 @@ -41,3 +42,18 @@ int yyparse(void); #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