comparison lib/pending.h @ 1363:e65f9a9ba62d draft

Cleanup pass on mkpasswd.c
author Rob Landley <rob@landley.net>
date Wed, 25 Jun 2014 22:54:59 -0500
parents d48bdc1cb017
children 6a06541c090c
comparison
equal deleted inserted replaced
1362:b9605ebd3af4 1363:e65f9a9ba62d
2 2
3 // password.c 3 // password.c
4 #define MAX_SALT_LEN 20 //3 for id, 16 for key, 1 for '\0' 4 #define MAX_SALT_LEN 20 //3 for id, 16 for key, 1 for '\0'
5 #define SYS_FIRST_ID 100 5 #define SYS_FIRST_ID 100
6 #define SYS_LAST_ID 999 6 #define SYS_LAST_ID 999
7 int get_salt(char *salt, char * algo);
8 void is_valid_username(const char *name); 7 void is_valid_username(const char *name);
9 int read_password(char * buff, int buflen, char* mesg); 8 int read_password(char * buff, int buflen, char* mesg);
10 int update_password(char *filename, char* username, char* encrypted); 9 int update_password(char *filename, char* username, char* encrypted);
11 10
12 // cut helper functions 11 // cut helper functions