Remove unsecure logs (keys value were printed)

Rename local parameter properly
release-v2.2.0
pedroGitt 2016-10-27 17:54:30 +02:00
parent 6f6d33c7eb
commit 8dbc2b50d5
1 changed files with 6 additions and 6 deletions

View File

@ -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>