summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-05 07:55:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-07-05 09:34:14 +0200
commit85caaf5272be6bc3ca5107cc928147786d9d4269 (patch)
tree8358864aa3ae8dd20c25ea43e7ccf0e8f1ef662f
parentb4c16a1a1aa62a28a3c36dbd006c221e6d399432 (diff)
downloadbarebox-85caaf5272be6bc3ca5107cc928147786d9d4269.tar.gz
password: fix command support as module
add missing EXPORT_SYMBOL for nan static function Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/password.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/password.c b/common/password.c
index cf36970..20e398f 100644
--- a/common/password.c
+++ b/common/password.c
@@ -87,6 +87,7 @@ int password(unsigned char *passwd, size_t length, int flags)
}
} while(1);
}
+EXPORT_SYMBOL(password);
int is_passwd_enable(void)
{
@@ -101,11 +102,13 @@ int is_passwd_enable(void)
return 1;
}
+EXPORT_SYMBOL(is_passwd_enable);
int passwd_disable(void)
{
return unlink(PASSWD_FILE);
}
+EXPORT_SYMBOL(passwd_disable);
static unsigned char to_digit(unsigned char c)
{
@@ -167,6 +170,7 @@ exit:
return ret;
}
+EXPORT_SYMBOL(read_passwd);
int write_passwd(unsigned char *sum, size_t length)
{
@@ -215,6 +219,7 @@ exit:
return ret;
}
+EXPORT_SYMBOL(write_passwd);
int check_passwd(unsigned char* passwd, size_t length)
{
@@ -258,6 +263,7 @@ err1:
return ret;
}
+EXPORT_SYMBOL(check_passwd);
int set_passwd(unsigned char* passwd, size_t length)
{
@@ -284,3 +290,4 @@ int set_passwd(unsigned char* passwd, size_t length)
return ret;
}
+EXPORT_SYMBOL(set_passwd);