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
commit7bd460b1208dcd41969e5928ad3c3680962bedce (patch)
treee91284bf414680579b10d8ef95546920cf4ec16a /cmds/keystore
parentdca4e5332cd1f3ce13a3c8b1938eee6689f7f410 (diff)
downloadframeworks_native-7bd460b1208dcd41969e5928ad3c3680962bedce.zip
frameworks_native-7bd460b1208dcd41969e5928ad3c3680962bedce.tar.gz
frameworks_native-7bd460b1208dcd41969e5928ad3c3680962bedce.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():