X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=blobdiff_plain;f=doas.h;h=ecf0db222f7fc5101c940fdf39c02517429c9ad8;hp=5de73cc5f412e4bedecd3c665fbf8d1617cb6a2a;hb=HEAD;hpb=b7e6671371e489fb6607f9ab883ddeb03895e51d diff --git a/doas.h b/doas.h index 5de73cc..ecf0db2 100644 --- a/doas.h +++ b/doas.h @@ -26,14 +26,15 @@ struct rule { }; extern struct rule **rules; -extern int nrules; +extern size_t 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,16 @@ int yyparse(void); #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);