summaryrefslogtreecommitdiffstats
path: root/cmds/keystore/netkeystore.h
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2009-09-11 18:34:28 +0800
committerHung-ying Tyan <tyanh@google.com>2009-09-11 19:30:13 +0800
commita7df557aa2573a4718c7bbd069268e62bc036753 (patch)
tree606824416def47dd79b782fb4037aa180fca8d93 /cmds/keystore/netkeystore.h
parentd304ae583d862250a21b5949fc3dbdf3af1febac (diff)
downloadframeworks_base-a7df557aa2573a4718c7bbd069268e62bc036753.zip
frameworks_base-a7df557aa2573a4718c7bbd069268e62bc036753.tar.gz
frameworks_base-a7df557aa2573a4718c7bbd069268e62bc036753.tar.bz2
Add tests and misc fixes on keystore.
* Refactor netkeystore.c to make client and server code testable. * Add a client test for setting new passwd and changing passwd. * Exclude "." and ".." from reset_keystore(). * Change ServerCommand.executeCommand() to accept variable length of arguments and add convert() to marshalling the args to bytes. * Keystore.java is revised accordingly.
Diffstat (limited to 'cmds/keystore/netkeystore.h')
-rw-r--r--cmds/keystore/netkeystore.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmds/keystore/netkeystore.h b/cmds/keystore/netkeystore.h
index d80ddae..e2ffd8b 100644
--- a/cmds/keystore/netkeystore.h
+++ b/cmds/keystore/netkeystore.h
@@ -25,6 +25,10 @@
#include "common.h"
+// for testing
+int parse_cmd(int argc, const char **argv, LPC_MARSHAL *cmd);
+void execute(LPC_MARSHAL *cmd, LPC_MARSHAL *reply);
+
static inline int readx(int s, void *_buf, int count)
{
char *buf = _buf;