diff options
author | Thomas Osterried <thomas@osterried.de> | 2006-04-09 11:49:21 +0000 |
---|---|---|
committer | Thomas Osterried <thomas@osterried.de> | 2006-04-09 11:49:21 +0000 |
commit | 7ea13ad3f26b14d70072d397569ed02cf565a7a3 (patch) | |
tree | 0096f960266ae277f5247557b191a5941bd07c47 /ax25/access.h | |
parent | 3cbf76b0d19b003402ae69c0f9a01e03260af3c3 (diff) |
md5 and sys authentication via /etc/ax25/bcpasswd and $HOME/bcpasswd.
Documented in axspawn.8
Thanks to Christoph <dk2crn> for contribution.
Diffstat (limited to 'ax25/access.h')
-rw-r--r-- | ax25/access.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ax25/access.h b/ax25/access.h new file mode 100644 index 0000000..12e4666 --- /dev/null +++ b/ax25/access.h @@ -0,0 +1,19 @@ +#ifndef ACCESS_H +#define ACCESS_H + +#define PASSSIZE 80 /* for md5 passwords, at least 32 characters */ +#define MINPWLEN_SYS 20 +#define MINPWLEN_MD5 8 + +#define PWFILE "bcpasswd" + +/* PWxxx: set bits */ +#define PW_CLEARTEXT 1 +#define PW_SYS 2 +#define PW_MD5 4 + +void ask_pw_sys(char *prompt, char *pass_want, char *pw); +void ask_pw_md5(char *prompt, char *pass_want, char *pw); +char *read_pwd (struct passwd *pw, int *pwtype); +#endif + |