aboutsummaryrefslogtreecommitdiff
path: root/lib/pending.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-09-26 18:49:44 -0500
committerRob Landley <rob@landley.net>2014-09-26 18:49:44 -0500
commite0d8009d76b3a2451cb6c6ed2b241c7eff06ed60 (patch)
treef2904430b0cb86f7b7a2721ae2ddd60fcf727166 /lib/pending.h
parente1fa787be8d0d66c9860c86dcb80fd6e096f74e0 (diff)
downloadtoybox-e0d8009d76b3a2451cb6c6ed2b241c7eff06ed60.tar.gz
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.
Diffstat (limited to 'lib/pending.h')
-rw-r--r--lib/pending.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/pending.h b/lib/pending.h
index c98bb514..c67d81c8 100644
--- a/lib/pending.h
+++ b/lib/pending.h
@@ -2,6 +2,5 @@
// password.c
#define MAX_SALT_LEN 20 //3 for id, 16 for key, 1 for '\0'
-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);