From bb0a864be9aaa7d814e99364edf7f6e0732a14e4 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Tue, 13 Sep 2005 19:48:57 +0000 Subject: [PATCH] Return any string value when the server sends a challenge to the client. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2816 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/sasl/SASLAnonymous.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/org/jivesoftware/smack/sasl/SASLAnonymous.java b/source/org/jivesoftware/smack/sasl/SASLAnonymous.java index fa478cd4a..7a03d9c0e 100644 --- a/source/org/jivesoftware/smack/sasl/SASLAnonymous.java +++ b/source/org/jivesoftware/smack/sasl/SASLAnonymous.java @@ -45,7 +45,8 @@ public class SASLAnonymous extends SASLMechanism { } protected String getChallengeResponse(byte[] bytes) { - // Return null since this mechanism will never get a challenge from the server - return null; + // Some servers may send a challenge to gather more information such as + // email address. Return any string value. + return "anything"; } }