annotate lib/pending.h @ 1324:3191aa9490aa draft

strings - print the strings in the file.
author Ashwini Sharma <ak.ashwini1981@gmail.com>
date Thu, 29 May 2014 08:18:50 -0500
parents d48bdc1cb017
children e65f9a9ba62d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1115
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 // pending.h - header for pending.c
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
2
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 // password.c
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
4 #define MAX_SALT_LEN 20 //3 for id, 16 for key, 1 for '\0'
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
5 #define SYS_FIRST_ID 100
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
6 #define SYS_LAST_ID 999
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
7 int get_salt(char *salt, char * algo);
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
8 void is_valid_username(const char *name);
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
9 int read_password(char * buff, int buflen, char* mesg);
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
10 int update_password(char *filename, char* username, char* encrypted);
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
11
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
12 // cut helper functions
349424387e22 Break out lib/pending.h from lib/lib.h.
Rob Landley <rob@landley.net>
parents:
diff changeset
13 void daemonize(void);