Changeset 76:2919e60d3588 for wokkel
- Timestamp:
- Dec 28, 2009, 12:13:34 PM (13 years ago)
- Branch:
- default
- Location:
- wokkel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/component.py
r54 r76 158 158 159 159 @ivar secret: The shared used to authorized incoming component connections. 160 @type secret: C{ str}.160 @type secret: C{unicode}. 161 161 """ 162 162 … … 237 237 be exchanged. 238 238 """ 239 calculatedHash = xmlstream.hashPassword(self.xmlstream.sid, self.secret) 239 calculatedHash = xmlstream.hashPassword(self.xmlstream.sid, 240 unicode(self.secret)) 240 241 if handshake != calculatedHash: 241 242 exc = error.StreamError('not-authorized', text='Invalid hash') -
wokkel/test/test_component.py
r54 r76 369 369 xs = self.xmlstream 370 370 xs.addOnetimeObserver(xmlstream.STREAM_AUTHD_EVENT, authenticated) 371 xs.sid = '1234'371 xs.sid = u'1234' 372 372 theHash = '32532c0f7dbf1253c095b18b18e36d38d94c1256' 373 373 xs.authenticator.onHandshake(theHash) … … 390 390 xs.sendStreamError = streamErrors.append 391 391 392 xs.sid = '1234'392 xs.sid = u'1234' 393 393 theHash = '1234' 394 394 xs.authenticator.onHandshake(theHash)
Note: See TracChangeset
for help on using the changeset viewer.