Commit 5103ab07 authored by Grigory Fedorov's avatar Grigory Fedorov

Merge branch 'develop' into feature/new_contact_list_design

parents 63e62798 d1b64345
Subproject commit ab1d28e8641238bcfd0ba11c0477da1d99f38a11 Subproject commit 284a850bbed4b678375f84dfde06118986954678
...@@ -48,8 +48,7 @@ import net.java.otr4j.OtrEngineHost; ...@@ -48,8 +48,7 @@ import net.java.otr4j.OtrEngineHost;
import net.java.otr4j.OtrEngineListener; import net.java.otr4j.OtrEngineListener;
import net.java.otr4j.OtrException; import net.java.otr4j.OtrException;
import net.java.otr4j.OtrPolicy; import net.java.otr4j.OtrPolicy;
import net.java.otr4j.OtrPolicyImpl; import net.java.otr4j.crypto.OtrCryptoEngine;
import net.java.otr4j.crypto.OtrCryptoEngineImpl;
import net.java.otr4j.crypto.OtrCryptoException; import net.java.otr4j.crypto.OtrCryptoException;
import net.java.otr4j.io.SerializationUtils; import net.java.otr4j.io.SerializationUtils;
import net.java.otr4j.session.InstanceTag; import net.java.otr4j.session.InstanceTag;
...@@ -82,13 +81,13 @@ public class OTRManager implements OtrEngineHost, OtrEngineListener, ...@@ -82,13 +81,13 @@ public class OTRManager implements OtrEngineHost, OtrEngineListener,
static { static {
POLICIES = new HashMap<SettingsManager.SecurityOtrMode, OtrPolicy>(); POLICIES = new HashMap<SettingsManager.SecurityOtrMode, OtrPolicy>();
POLICIES.put(SecurityOtrMode.disabled, new OtrPolicyImpl( POLICIES.put(SecurityOtrMode.disabled, new OtrPolicy(
OtrPolicy.NEVER)); OtrPolicy.NEVER));
POLICIES.put(SecurityOtrMode.manual, new OtrPolicyImpl( POLICIES.put(SecurityOtrMode.manual, new OtrPolicy(
OtrPolicy.OTRL_POLICY_MANUAL & ~OtrPolicy.ALLOW_V1)); OtrPolicy.OTRL_POLICY_MANUAL & ~OtrPolicy.ALLOW_V1));
POLICIES.put(SecurityOtrMode.auto, new OtrPolicyImpl( POLICIES.put(SecurityOtrMode.auto, new OtrPolicy(
OtrPolicy.OPPORTUNISTIC & ~OtrPolicy.ALLOW_V1)); OtrPolicy.OPPORTUNISTIC & ~OtrPolicy.ALLOW_V1));
POLICIES.put(SecurityOtrMode.required, new OtrPolicyImpl( POLICIES.put(SecurityOtrMode.required, new OtrPolicy(
OtrPolicy.OTRL_POLICY_ALWAYS & ~OtrPolicy.ALLOW_V1)); OtrPolicy.OTRL_POLICY_ALWAYS & ~OtrPolicy.ALLOW_V1));
} }
...@@ -366,7 +365,7 @@ public class OTRManager implements OtrEngineHost, OtrEngineListener, ...@@ -366,7 +365,7 @@ public class OTRManager implements OtrEngineHost, OtrEngineListener,
PublicKey remotePublicKey = session.getRemotePublicKey(); PublicKey remotePublicKey = session.getRemotePublicKey();
String value; String value;
try { try {
value = new OtrCryptoEngineImpl() value = new OtrCryptoEngine()
.getFingerprint(remotePublicKey); .getFingerprint(remotePublicKey);
} catch (OtrCryptoException e) { } catch (OtrCryptoException e) {
LogManager.exception(this, e); LogManager.exception(this, e);
...@@ -543,7 +542,7 @@ public class OTRManager implements OtrEngineHost, OtrEngineListener, ...@@ -543,7 +542,7 @@ public class OTRManager implements OtrEngineHost, OtrEngineListener,
public String getLocalFingerprint(String account) { public String getLocalFingerprint(String account) {
try { try {
return new OtrCryptoEngineImpl().getFingerprint(getLocalKeyPair( return new 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