aboutsummaryrefslogtreecommitdiff
path: root/java/android
diff options
context:
space:
mode:
authorpedroGitt <pedro.contreiras@amdocs.com>2016-10-27 17:54:30 +0200
committerpedroGitt <pedro.contreiras@amdocs.com>2016-10-27 17:54:30 +0200
commit8dbc2b50d523f17ce8c10fddb8e22c35dfe57e82 (patch)
treec413a1914b23a0352d21d154607c83caeef35349 /java/android
parent6f6d33c7eb0adea276e139991fece7603e8a4a90 (diff)
Remove unsecure logs (keys value were printed)
Rename local parameter properly
Diffstat (limited to 'java/android')
-rw-r--r--java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java12
1 files changed, 6 insertions, 6 deletions
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.<br>