fixed digest-md5 auth to work with prosody as well. thank you Florian Schmaus

This commit is contained in:
Daniel Gultsch 2014-04-01 11:38:34 +02:00
parent ade2982b5e
commit 1fe49a0545

View file

@ -82,7 +82,7 @@ public class CryptoHelper {
+ "\",realm=\"" + account.getServer() + "\",nonce=\"" + "\",realm=\"" + account.getServer() + "\",nonce=\""
+ nonce + "\",cnonce=\"" + cNonce + nonce + "\",cnonce=\"" + cNonce
+ "\",nc="+nonceCount+",qop=auth,digest-uri=\""+digestUri+"\",response=" + response + "\",nc="+nonceCount+",qop=auth,digest-uri=\""+digestUri+"\",response=" + response
+ ",charset=utf-8,authzid=\"" + account.getJid() + "\""; + ",charset=utf-8";
Log.d("xmppService", "saslString=" + saslString); Log.d("xmppService", "saslString=" + saslString);
return Base64.encodeToString( return Base64.encodeToString(
saslString.getBytes(Charset.defaultCharset()), saslString.getBytes(Charset.defaultCharset()),