summaryrefslogtreecommitdiffstats
path: root/include/password.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/password.h')
-rw-r--r--include/password.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/password.h b/include/password.h
index 0dd1054054..fec831fde2 100644
--- a/include/password.h
+++ b/include/password.h
@@ -42,6 +42,14 @@ int passwd_env_disable(void);
int check_env_passwd(unsigned char* passwd, size_t length);
int set_env_passwd(unsigned char* passwd, size_t length);
+#ifdef CONFIG_PASSWORD
+void login(void);
+#else
+static inline void login(void)
+{
+}
+#endif
+
static inline int is_passwd_enable(void)
{
return is_passwd_default_enable() || is_passwd_env_enable();