Commit 03de420a authored by Grigory Fedorov's avatar Grigory Fedorov

Merge branch 'aelmahmoudy-update_otr' into develop

parents 619bda43 9a6be6fa
Subproject commit 295de3b53f054625ecdcf0d5a5db4fc846144013 Subproject commit 0ced840950b4db1a403ea085b642a7028b1ef03d
...@@ -365,8 +365,7 @@ public class OTRManager implements OtrEngineHost, OtrEngineListener, ...@@ -365,8 +365,7 @@ public class OTRManager implements OtrEngineHost, OtrEngineListener,
PublicKey remotePublicKey = session.getRemotePublicKey(); PublicKey remotePublicKey = session.getRemotePublicKey();
String value; String value;
try { try {
value = new OtrCryptoEngine() value = OtrCryptoEngine.getFingerprint(remotePublicKey);
.getFingerprint(remotePublicKey);
} catch (OtrCryptoException e) { } catch (OtrCryptoException e) {
LogManager.exception(this, e); LogManager.exception(this, e);
value = null; value = null;
...@@ -542,7 +541,7 @@ public class OTRManager implements OtrEngineHost, OtrEngineListener, ...@@ -542,7 +541,7 @@ public class OTRManager implements OtrEngineHost, OtrEngineListener,
public String getLocalFingerprint(String account) { public String getLocalFingerprint(String account) {
try { try {
return new OtrCryptoEngine().getFingerprint(getLocalKeyPair( return OtrCryptoEngine.getFingerprint(getLocalKeyPair(
account).getPublic()); account).getPublic());
} catch (OtrCryptoException e) { } catch (OtrCryptoException e) {
LogManager.exception(this, e); LogManager.exception(this, e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment