diff options
author | Rob Landley <rob@landley.net> | 2013-10-16 19:30:17 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-10-16 19:30:17 -0500 |
commit | d0f7935f637df5d4794aa782def96cc3db8779ed (patch) | |
tree | e2ba730174003a026302abf6ce57c9126c7f884b /lib/lib.h | |
parent | 26f52eb13eb27c5aefdb644d96408376b5d63783 (diff) | |
download | toybox-d0f7935f637df5d4794aa782def96cc3db8779ed.tar.gz |
Prep work for useradd by Ashwini Sharma.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -187,6 +187,11 @@ mode_t string_to_mode(char *mode_str, mode_t base); void mode_to_string(mode_t mode, char *buf); // password helper functions +#define MAX_SALT_LEN 20 //3 for id, 16 for key, 1 for '\0' +#define SYS_FIRST_ID 100 +#define SYS_LAST_ID 999 +int get_salt(char *salt, char * algo); +void is_valid_username(const char *name); int read_password(char * buff, int buflen, char* mesg); int update_password(char *filename, char* username, char* encrypted); |