ax25/access.h
raw| 1 | #ifndef ACCESS_H |
| 2 | #define ACCESS_H |
| 3 | |
| 4 | #define PASSSIZE 80 /* for md5 passwords, at least 32 characters */ |
| 5 | #define MINPWLEN_SYS 20 |
| 6 | #define MINPWLEN_MD5 8 |
| 7 | |
| 8 | #define PWFILE "bcpasswd" |
| 9 | |
| 10 | /* PWxxx: set bits */ |
| 11 | #define PW_CLEARTEXT 1 |
| 12 | #define PW_SYS 2 |
| 13 | #define PW_MD5 4 |
| 14 | #define PW_UNIX 8 |
| 15 | |
| 16 | void ask_pw_sys(char *prompt, char *pass_want, char *pw); |
| 17 | void ask_pw_md5(char *prompt, char *pass_want, char *pw); |
| 18 | char *read_pwd (struct passwd *pw, int *pwtype); |
| 19 | #endif |