mirror of https://git.matrix.org/git/olm.git
Remove unsecure logs (keys value were printed)
Rename local parameter properlyrelease-v2.2.0
parent
6f6d33c7eb
commit
8dbc2b50d5
|
@ -264,7 +264,7 @@ public class OlmAccount implements Serializable {
|
||||||
if( null != (identityKeysBuffer = identityKeysJni())) {
|
if( null != (identityKeysBuffer = identityKeysJni())) {
|
||||||
try {
|
try {
|
||||||
identityKeysJsonObj = new JSONObject(new String(identityKeysBuffer));
|
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) {
|
} catch (JSONException e) {
|
||||||
identityKeysJsonObj = null;
|
identityKeysJsonObj = null;
|
||||||
Log.e(LOG_TAG, "## identityKeys(): Exception - Msg=" + e.getMessage());
|
Log.e(LOG_TAG, "## identityKeys(): Exception - Msg=" + e.getMessage());
|
||||||
|
@ -321,21 +321,21 @@ public class OlmAccount implements Serializable {
|
||||||
*/
|
*/
|
||||||
public JSONObject oneTimeKeys() {
|
public JSONObject oneTimeKeys() {
|
||||||
byte identityKeysBuffer[];
|
byte identityKeysBuffer[];
|
||||||
JSONObject identityKeysJsonObj = null;
|
JSONObject oneTimeKeysJsonObj = null;
|
||||||
|
|
||||||
if( null != (identityKeysBuffer = oneTimeKeysJni())) {
|
if( null != (identityKeysBuffer = oneTimeKeysJni())) {
|
||||||
try {
|
try {
|
||||||
identityKeysJsonObj = new JSONObject(new String(identityKeysBuffer));
|
oneTimeKeysJsonObj = new JSONObject(new String(identityKeysBuffer));
|
||||||
Log.d(LOG_TAG, "## oneTimeKeys(): Identity Json keys=" + identityKeysJsonObj.toString());
|
//Log.d(LOG_TAG, "## oneTimeKeys(): OneTime Json keys=" + oneTimeKeysJsonObj.toString());
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
identityKeysJsonObj = null;
|
oneTimeKeysJsonObj = null;
|
||||||
Log.e(LOG_TAG, "## oneTimeKeys(): Exception - Msg=" + e.getMessage());
|
Log.e(LOG_TAG, "## oneTimeKeys(): Exception - Msg=" + e.getMessage());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Log.e(LOG_TAG, "## oneTimeKeys(): Failure - identityKeysJni()=null");
|
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>
|
* Get the public parts of the unpublished "one time keys" for the account.<br>
|
||||||
|
|
Loading…
Reference in New Issue