mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
7f25f00ba release: 1.2.0 40fdbbbdd feat(mac) add reset API b36ccba3f feat(openssl) list functions can now optionally drop provider name 5381f10c3 chore(tests) bump openssl to 3.2.0 (#140) b72870ce1 chore(perf) calculate openssl speed numbers d23b34ae8 fix(compat) works better with plain luajit e9edc76cb tests(perf) add kdf dac54bf76 perf(kdf) use table.nkeys for params 3d0a51cca feat(cipher) add set_buffer_size API ba5de3e53 perf(cipher) improve performance on cipher e87e93f66 tests(perf) pretty up tests c8745f9ba chore(tests) format tests 073c943bf feat(bn) add from_mpi, to_mpi and set API 253d11c54 release: 1.1.0 2e401b335 feat(pkey) support pass in ctrl str options 12f5209ff chore(tests) revert BoringSSL specific patterns d155657e6 feat(err) standardize error format and add new API to get reason and library name 3c0027d0b doc(readme) remove docs about BoringSSL git-subtree-dir: src/deps/src/lua-resty-openssl git-subtree-split: 7f25f00ba2b2140b794c94b5ae17f5a0736e3b03
30 lines
No EOL
1 KiB
Lua
30 lines
No EOL
1 KiB
Lua
local ffi = require "ffi"
|
|
|
|
require "resty.openssl.include.ossl_typ"
|
|
local OPENSSL_3X = require("resty.openssl.version").OPENSSL_3X
|
|
|
|
ffi.cdef [[
|
|
unsigned long ERR_peek_error(void);
|
|
unsigned long ERR_peek_last_error(void);
|
|
void ERR_clear_error(void);
|
|
void ERR_error_string_n(unsigned long e, char *buf, size_t len);
|
|
const char *ERR_lib_error_string(unsigned long e);
|
|
const char *ERR_reason_error_string(unsigned long e);
|
|
]]
|
|
|
|
if OPENSSL_3X then
|
|
ffi.cdef [[
|
|
unsigned long ERR_get_error_all(const char **file, int *line,
|
|
const char **func,
|
|
const char **data, int *flags);
|
|
unsigned long ERR_peek_last_error_all(const char **file, int *line,
|
|
const char **func,
|
|
const char **data, int *flags);
|
|
]]
|
|
|
|
else
|
|
ffi.cdef [[
|
|
unsigned long ERR_get_error_line(const char **file, int *line);
|
|
unsigned long ERR_peek_last_error_line(const char **file, int *line);
|
|
]]
|
|
end |