Update OTR library

parent e7a2353a
Subproject commit 284a850bbed4b678375f84dfde06118986954678 Subproject commit a7e91fddfe519b408be3fceceb13fa2528be44f8
...@@ -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