1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-25 18:52:20 -05:00

Update stanzaio

This commit is contained in:
Lance Stout 2013-09-19 09:12:55 -07:00
parent cd0ef555b0
commit 3a288423bc

View File

@ -5098,12 +5098,12 @@ WSConnection.prototype.connect = function (opts) {
self.conn = new WebSocket(opts.wsURL, 'xmpp');
self.conn.onerror = function (e) {
e.preventDefault();
self.emit('disconnected', e);
self.emit('disconnected', self);
return false;
};
self.conn.onclose = function () {
self.emit('disconnected');
self.emit('disconnected', self);
};
self.conn.onopen = function () {
@ -14955,7 +14955,7 @@ exports.Paddle = Paddle;
*/
function Hi(text, salt, iterations) {
var ui1 = HMAC(text, salt + '\0\0\0\1');
ui = ui1;
var ui = ui1;
for (var i = 0; i < iterations - 1; i++) {
ui1 = HMAC(text, ui1);
ui = XOR(ui, ui1);