Wed Oct 26 08:45:22 2005 UTC by snakeru Fixed SASL bug on win32 platform. (Thanks to Martin Thomas)
This commit is contained in:
parent
1095357c90
commit
786da12472
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
||||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
## GNU General Public License for more details.
|
## GNU General Public License for more details.
|
||||||
|
|
||||||
# $Id: auth.py,v 1.28 2005/05/07 02:42:04 snakeru Exp $
|
# $Id: auth.py,v 1.33 2005/11/30 17:05:40 normanr Exp $
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Provides library with all Non-SASL and SASL authentication mechanisms.
|
Provides library with all Non-SASL and SASL authentication mechanisms.
|
||||||
|
@ -199,7 +199,7 @@ class SASL(PlugIn):
|
||||||
if key in ['nc','qop','response','charset']: sasl_data+="%s=%s,"%(key,resp[key])
|
if key in ['nc','qop','response','charset']: sasl_data+="%s=%s,"%(key,resp[key])
|
||||||
else: sasl_data+='%s="%s",'%(key,resp[key])
|
else: sasl_data+='%s="%s",'%(key,resp[key])
|
||||||
########################################3333
|
########################################3333
|
||||||
node=Node('response',attrs={'xmlns':NS_SASL},payload=[base64.encodestring(sasl_data[:-1]).replace('\n','')])
|
node=Node('response',attrs={'xmlns':NS_SASL},payload=[base64.encodestring(sasl_data[:-1]).replace('\r','').replace('\n','')])
|
||||||
self._owner.send(node.__str__())
|
self._owner.send(node.__str__())
|
||||||
elif chal.has_key('rspauth'): self._owner.send(Node('response',attrs={'xmlns':NS_SASL}).__str__())
|
elif chal.has_key('rspauth'): self._owner.send(Node('response',attrs={'xmlns':NS_SASL}).__str__())
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue