annotate lib/pending.h @ 1500:cf77c4939385 draft

The only illegal characters in a username are ":" (field separator), "\n" (line separator), and "/" (filename separator). Restricting usernames to the legacy posix character allowed set (for filenames, so the $HOME directory is creatable on VFAT and similar) means you can't have UTF-8 usernames. Linux allows any character but / and NUL in filenames. Since root is creating these entries, we assume root knows what it's doing.
author Rob Landley <rob@landley.net>
date Fri, 26 Sep 2014 18:49:44 -0500
parents ed28d4d9558d
children
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 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
6 int update_password(char *filename, char* username, char* encrypted);