apps/nshlib: All NSH sessions may now be protected with passwords stored in the encrypted /etc/passwd file

This commit is contained in:
Gregory Nutt
2016-01-20 14:42:39 -06:00
parent 29d65eb866
commit 93d9d5e4ca
9 changed files with 332 additions and 75 deletions

View File

@@ -232,8 +232,10 @@ const char g_nshmotd[] = CONFIG_NSH_MOTD_STRING;
/* Telnet login prompts */
#ifdef CONFIG_NSH_LOGIN
#if defined(CONFIG_NSH_TELNET_LOGIN) && defined(CONFIG_NSH_TELNET)
const char g_telnetgreeting[] = "\nWelcome to NuttShell(NSH) Telnet Server...\n";
#endif
const char g_userprompt[] = "login: ";
const char g_passwordprompt[] = "password: ";
const char g_loginsuccess[] = "\nUser Logged-in!\n";