aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-05-28 20:19:05 +0200
committerChristian Schneppe <christian@pix-art.de>2017-05-28 20:19:05 +0200
commitf6c5da6d56a07867169db2ff68a52cbf9621cf9b (patch)
treed379e36a4c9bd210c34ad069c28c88b0c0724275 /src/main/java/de/pixart/messenger
parent03a2e7293af29b64b6b263f76a90e385e7d308fe (diff)
clean up client cert selection code
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/xmpp/XmppConnection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
index 75eb63e5e..cfb6751f4 100644
--- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
+++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
@@ -165,7 +165,8 @@ public class XmppConnection implements Runnable {
@Override
public String[] getClientAliases(String s, Principal[] principals) {
- return new String[0];
+ final String alias = account.getPrivateKeyAlias();
+ return alias != null ? new String[]{alias} : new String[0];
}
@Override