From 9fd65395345ee870f2c3a04f9e60f6db209bf9da Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 18 May 2017 11:31:31 +0200 Subject: [PATCH] clean up client cert selection code --- src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java index c7953f54e..90585d9f3 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java @@ -161,7 +161,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