summaryrefslogtreecommitdiffstats
path: root/include/password.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-08-10 12:47:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-11 09:22:07 +0200
commitc78ef640cd18847a962d3e1fdb84ad6c265b0deb (patch)
tree54c4ea48cb1ebfdaaaab05ff47e8dcb6be06ef3a /include/password.h
parentfde45de7351264cd27a9024ea2b6620d170b5269 (diff)
downloadbarebox-c78ef640cd18847a962d3e1fdb84ad6c265b0deb.tar.gz
barebox-c78ef640cd18847a962d3e1fdb84ad6c265b0deb.tar.xz
login: add timeout support
If a timeout is specified and expired the command will be executed by default boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/password.h')
-rw-r--r--include/password.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/password.h b/include/password.h
index 32301eb482..540ab05d45 100644
--- a/include/password.h
+++ b/include/password.h
@@ -28,7 +28,7 @@
#define STAR (1 << 1)
#define CLEAR (1 << 2)
-int password(unsigned char *passwd, size_t length, int flags);
+int password(unsigned char *passwd, size_t length, int flags, int timeout);
int read_passwd(unsigned char *sum, size_t length);
int write_passwd(unsigned char *sum, size_t length);