remove sha1 from lua_mysqlaux, use lua-crypt instead

This commit is contained in:
Cloud Wu
2014-10-29 11:18:47 +08:00
parent f8a50929a8
commit 2ab689f7c1
4 changed files with 173 additions and 375 deletions

View File

@@ -6,7 +6,7 @@
local socketchannel = require "socketchannel"
local bit = require "bit32"
local mysqlaux = require "mysqlaux.c"
local crypt = require "crypt"
local sub = string.sub
@@ -20,7 +20,7 @@ local bxor = bit.bxor
local bor = bit.bor
local lshift = bit.lshift
local rshift = bit.rshift
local sha1= mysqlaux.sha1_bin
local sha1= crypt.sha1
local concat = table.concat
local unpack = unpack
local setmetatable = setmetatable