aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/crypto
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-08 20:14:47 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-08 20:14:47 +0100
commitd7ab7715ed5bb16dd5fbd022d0e5f029fd7f7b00 (patch)
tree6948a665942beba1949ba70440ba716198807995 /src/eu/siacs/conversations/crypto
parent5a4328db7de0adf539da2cc3a73ee0e066bf436c (diff)
couple of otr related bug fixes and basic ping
Diffstat (limited to 'src/eu/siacs/conversations/crypto')
-rw-r--r--src/eu/siacs/conversations/crypto/OtrEngine.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/eu/siacs/conversations/crypto/OtrEngine.java b/src/eu/siacs/conversations/crypto/OtrEngine.java
index eca01a73..23af94e7 100644
--- a/src/eu/siacs/conversations/crypto/OtrEngine.java
+++ b/src/eu/siacs/conversations/crypto/OtrEngine.java
@@ -64,16 +64,12 @@ public class OtrEngine implements OtrEngineHost {
PrivateKey privateKey = keyFactory.generatePrivate(privateKeySpec);
return new KeyPair(publicKey, privateKey);
} catch (JSONException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ return null;
} catch (NoSuchAlgorithmException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ return null;
} catch (InvalidKeySpecException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ return null;
}
- return null;
}
private void saveKey() {