mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-27 19:22:15 -05:00
fixed digest-md5 auth to work with prosody as well. thank you Florian Schmaus
This commit is contained in:
parent
ade2982b5e
commit
1fe49a0545
@ -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()),
|
||||||
|
Loading…
Reference in New Issue
Block a user