summaryrefslogtreecommitdiffstats
path: root/cmds/keystore
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2009-07-02 19:11:11 +0800
committerChung-yih Wang <cywang@google.com>2009-07-02 23:08:39 +0800
commitfa927c046a916fceb077d1ecf2552d76e73da912 (patch)
tree1bd090be6f71aa36b96e3a2218b6f9b97316af3e /cmds/keystore
parenteec11827a6c06b029030f43c8d54fd871cc3347d (diff)
downloadframeworks_base-fa927c046a916fceb077d1ecf2552d76e73da912.zip
frameworks_base-fa927c046a916fceb077d1ecf2552d76e73da912.tar.gz
frameworks_base-fa927c046a916fceb077d1ecf2552d76e73da912.tar.bz2
Remove the null-termination for Java string compatibility.
1. Also change the keyname delimiter in CertTool.java. 2. Return NOTFOUND if the result.len==0 in the listKeys(). 3. Define the keystore states in the class Keystore.
Diffstat (limited to 'cmds/keystore')
-rw-r--r--cmds/keystore/netkeystore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/keystore/netkeystore.c b/cmds/keystore/netkeystore.c
index b0d683c..e45e24f 100644
--- a/cmds/keystore/netkeystore.c
+++ b/cmds/keystore/netkeystore.c
@@ -142,7 +142,7 @@ static void do_get_state(LPC_MARSHAL *cmd, LPC_MARSHAL *reply)
static void do_listkeys(LPC_MARSHAL *cmd, LPC_MARSHAL *reply)
{
reply->retcode = list_keys((const char*)cmd->data, (char*)reply->data);
- if (!reply->retcode) reply->len = strlen((char*)reply->data) + 1;
+ if (!reply->retcode) reply->len = strlen((char*)reply->data);
}
// args of get():