summaryrefslogtreecommitdiffstats
path: root/server/resty/openssl/include/err.lua
blob: 142098c5f3806add093371e059926233ad3c26e6 (plain)
1
2
3
4
5
6
7
8
9
local ffi = require "ffi"

ffi.cdef [[
  unsigned long ERR_peek_error(void);
  unsigned long ERR_peek_last_error_line(const char **file, int *line);
  unsigned long ERR_get_error_line(const char **file, int *line);
  void ERR_clear_error(void);
  void ERR_error_string_n(unsigned long e, char *buf, size_t len);
]]