summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-11-05 12:37:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-11-05 12:37:41 +0000
commit11e476458510dc06f7ccb8fc30c762f79fd7b017 (patch)
tree30e0055579efe27ee87800e12dbf21167bec45c2
parent0ab26e5399c1812fbf852c91e395bdc1cf16cbdd (diff)
fix for SCRAM authorization in Jabber
git-svn-id: http://svn.miranda-ng.org/main/trunk@6784 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/JabberG/src/jabber_secur.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_secur.cpp b/protocols/JabberG/src/jabber_secur.cpp
index 3ab48f0257..307a5df5d4 100644
--- a/protocols/JabberG/src/jabber_secur.cpp
+++ b/protocols/JabberG/src/jabber_secur.cpp
@@ -325,14 +325,14 @@ char* TScramAuth::getChallenge(const TCHAR *challenge)
char* TScramAuth::getInitialRequest()
{
- ptrA uname( mir_utf8encodeT(info->username)), serv( mir_utf8encode(info->server));
+ ptrA uname( mir_utf8encodeT(info->username));
unsigned char nonce[24];
CallService(MS_UTILS_GETRANDOM, sizeof(nonce), (LPARAM)nonce);
cnonce = mir_base64_encode((PBYTE)nonce, sizeof(nonce));
char buf[4096];
- int cbLen = mir_snprintf(buf, sizeof(buf), "n,,n=%s@%s,r=%s", uname, serv, cnonce);
+ int cbLen = mir_snprintf(buf, sizeof(buf), "n,,n=%s,r=%s", uname, cnonce);
msg1 = mir_strdup(buf + 3);
return mir_base64_encode((PBYTE)buf, cbLen);
}