[miranda] r14446 committed - fix for SCRAM authorization in Jabber (Patch by Ghazan)

2 views
Skip to first unread message

mir...@googlecode.com

unread,
Nov 5, 2013, 3:50:20 PM11/5/13
to miranda-i...@googlegroups.com
Revision: 14446
Author: rain...@gmail.com
Date: Tue Nov 5 20:50:06 2013 UTC
Log: fix for SCRAM authorization in Jabber (Patch by Ghazan)
http://code.google.com/p/miranda/source/detail?r=14446

Modified:
/trunk/miranda/protocols/JabberG/jabber_secur.cpp

=======================================
--- /trunk/miranda/protocols/JabberG/jabber_secur.cpp Wed Oct 17 18:18:19
2012 UTC
+++ /trunk/miranda/protocols/JabberG/jabber_secur.cpp Tue Nov 5 20:50:06
2013 UTC
@@ -394,15 +394,14 @@

char* TScramAuth::getInitialRequest()
{
- char *uname = mir_utf8encodeT( info->username ),
- *serv = mir_utf8encode( info->server );
+ char *uname = mir_utf8encodeT( info->username );

unsigned char nonce[24];
JCallService( MS_UTILS_GETRANDOM, sizeof(nonce), ( LPARAM )nonce );
cnonce = JabberBase64Encode(( char* )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 );

mir_free( serv );
Reply all
Reply to author
Forward
0 new messages