Diff

plugins/proxy65.lua @ 392:cdea6a28369e

plugins: Use util.hashes instead of util.sha1
author Kim Alvefur <zash@zash.se>
date Tue, 25 Aug 2015 18:03:10 +0200
parent 380:0891b4e27766
child 395:e86144a4eaa1
line wrap: on
line diff
--- a/plugins/proxy65.lua	Tue Aug 25 16:27:38 2015 +0200
+++ b/plugins/proxy65.lua	Tue Aug 25 18:03:10 2015 +0200
@@ -1,6 +1,6 @@
 local events = require "util.events";
 local uuid = require "util.uuid";
-local sha1 = require "util.sha1";
+local sha1 = require "util.hashes".sha1;
 
 local proxy65_mt = {};
 proxy65_mt.__index = proxy65_mt;
@@ -151,7 +151,7 @@
 end
 
 function negotiate_socks5(stream, conn, sid, requester_jid, target_jid)
-	local hash = sha1.sha1(sid..requester_jid..target_jid);
+	local hash = sha1(sid..requester_jid..target_jid);
 	local function suppress_connected()
 		conn:unhook("connected", suppress_connected);
 		return true;