From 8dbc2b50d523f17ce8c10fddb8e22c35dfe57e82 Mon Sep 17 00:00:00 2001 From: pedroGitt Date: Thu, 27 Oct 2016 17:54:30 +0200 Subject: Remove unsecure logs (keys value were printed) Rename local parameter properly --- .../olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'java/android/OlmLibSdk/olm-sdk/src') diff --git a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java index 0202cdf..321e194 100644 --- a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java +++ b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java @@ -264,7 +264,7 @@ public class OlmAccount implements Serializable { if( null != (identityKeysBuffer = identityKeysJni())) { try { identityKeysJsonObj = new JSONObject(new String(identityKeysBuffer)); - Log.d(LOG_TAG, "## identityKeys(): Identity Json keys=" + identityKeysJsonObj.toString()); + //Log.d(LOG_TAG, "## identityKeys(): Identity Json keys=" + identityKeysJsonObj.toString()); } catch (JSONException e) { identityKeysJsonObj = null; Log.e(LOG_TAG, "## identityKeys(): Exception - Msg=" + e.getMessage()); @@ -321,21 +321,21 @@ public class OlmAccount implements Serializable { */ public JSONObject oneTimeKeys() { byte identityKeysBuffer[]; - JSONObject identityKeysJsonObj = null; + JSONObject oneTimeKeysJsonObj = null; if( null != (identityKeysBuffer = oneTimeKeysJni())) { try { - identityKeysJsonObj = new JSONObject(new String(identityKeysBuffer)); - Log.d(LOG_TAG, "## oneTimeKeys(): Identity Json keys=" + identityKeysJsonObj.toString()); + oneTimeKeysJsonObj = new JSONObject(new String(identityKeysBuffer)); + //Log.d(LOG_TAG, "## oneTimeKeys(): OneTime Json keys=" + oneTimeKeysJsonObj.toString()); } catch (JSONException e) { - identityKeysJsonObj = null; + oneTimeKeysJsonObj = null; Log.e(LOG_TAG, "## oneTimeKeys(): Exception - Msg=" + e.getMessage()); } } else { Log.e(LOG_TAG, "## oneTimeKeys(): Failure - identityKeysJni()=null"); } - return identityKeysJsonObj; + return oneTimeKeysJsonObj; } /** * Get the public parts of the unpublished "one time keys" for the account.
-- cgit v1.2.3