Software /
code /
prosody
File
util/xpcall.lua @ 9964:f299d4917dd8
util.hashes: Add test vectors from RFC 6070 for PBKDF2 (aka SCRAM Hi())
Number 4 is disabled by default beacuse of how long time it takes
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 19 Apr 2019 14:12:28 +0200 |
parent | 9561:cfc7b2f7251e |
child | 12975:d10957394a3c |
line wrap: on
line source
local xpcall = xpcall; if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then xpcall = require"util.compat".xpcall; end return { xpcall = xpcall; };