Skip to content

Commit

Permalink
Add crypto >= 0.9.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
barretron committed Sep 12, 2013
1 parent 94d83aa commit 38f303d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oscar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2672,7 +2672,7 @@ OscarConnection.prototype._login = function(error, conn, loginCb, reentry) {
clientInfo.vLesser = [0x00, 0x00];
clientInfo.vBuild = [0x0C, 0x18];
}
oldhash = crypto.createHash('md5').update(salt).update(self._options.connection.password).update('AOL Instant Messenger (SM)').digest();
oldhash = crypto.createHash('md5').update(salt).update(self._options.connection.password).update('AOL Instant Messenger (SM)').digest('binary');
for (var i=0,len=oldhash.length; i<len; i++)
hash[i] = oldhash.charCodeAt(i);
self._send(conn, self._createFLAP(conn, FLAP_CHANNELS.SNAC,
Expand Down

0 comments on commit 38f303d

Please sign in to comment.