From 7bd460b1208dcd41969e5928ad3c3680962bedce Mon Sep 17 00:00:00 2001 From: Chung-yih Wang Date: Thu, 2 Jul 2009 19:11:11 +0800 Subject: 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. --- cmds/keystore/netkeystore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds') 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(): -- cgit v1.1