summaryrefslogtreecommitdiffstats
path: root/include/console.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-09-16 19:49:58 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-19 08:49:47 +0200
commitbb89ea62a0b7e5c6fcedfe1a28b6dd82236247ce (patch)
tree45448d5807a24e8bd1b42e27994334e590763f2f /include/console.h
parent54385ace4b98f8131d53757d18858d0729960dc2 (diff)
downloadbarebox-bb89ea62a0b7e5c6fcedfe1a28b6dd82236247ce.tar.gz
barebox-bb89ea62a0b7e5c6fcedfe1a28b6dd82236247ce.tar.xz
login: disable input console if password wrong
so we guarantee that barebox is secured again user interaction Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index 72cf99f55b..e94c5aec75 100644
--- a/include/console.h
+++ b/include/console.h
@@ -54,4 +54,7 @@ extern struct list_head console_list;
#define CFG_PBSIZE (CONFIG_CBSIZE+sizeof(CONFIG_PROMPT)+16)
+bool console_is_input_allow(void);
+void console_allow_input(bool val);
+
#endif