From: <kak...@us...> - 2009-02-03 19:37:18
|
Revision: 10934 http://amsn.svn.sourceforge.net/amsn/?rev=10934&view=rev Author: kakaroto Date: 2009-02-03 19:37:13 +0000 (Tue, 03 Feb 2009) Log Message: ----------- WLM2009 uses a real icechar for username/password, so the '=' padding char is not used, so we need to manually add it to get the real user/pass after the base64 decode Modified Paths: -------------- trunk/amsn/sip.tcl Modified: trunk/amsn/sip.tcl =================================================================== --- trunk/amsn/sip.tcl 2009-02-02 09:25:13 UTC (rev 10933) +++ trunk/amsn/sip.tcl 2009-02-03 19:37:13 UTC (rev 10934) @@ -1675,7 +1675,15 @@ if {$candidate_id != "" && $password != "" && $transport == "UDP"} { - lappend remote_candidates $candidate + if {[string length [base64::decode $candidate_id]] != 32 && + [string range $candidate_id end end] != "="} { + append candidate_id "=" + } + if {[string length [base64::decode $password]] != 16 && + [string range $password end end] != "="} { + append password "==" + } + lappend remote_candidates [list $candidate_id $component_id $password $transport $qvalue $ip $port] } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |