Skip to content

Commit a110089

Browse files
authored
更新证书序列号获取代码
1 parent c080078 commit a110089

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lualib/crypt/utils.lua

+3-7
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,8 @@ function UTILS.hashkey (key, hex)
3939
return hash
4040
end
4141

42-
function UTILS.get_cert_sn(cert, hex)
43-
local data, err = get_cert_sn(cert)
44-
if data then
45-
return hex and hexencode(data) or data
46-
end
47-
return nil, err
42+
function UTILS.get_cert_sn(cert)
43+
return get_cert_sn(cert)
4844
end
4945

5046
-- 初始化函数
@@ -53,4 +49,4 @@ return function (t)
5349
t[k] = v
5450
end
5551
return UTILS
56-
end
52+
end

0 commit comments

Comments
 (0)