HEX
Server: LiteSpeed
System: Linux baran.dnsprotection.me 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: ddir12 (3618)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //opt/imunify360-webshield/lualib/resty/openssl/include/crypto.lua
local ffi = require "ffi"
local C = ffi.C

ffi.cdef [[
  int FIPS_mode(void);
  int FIPS_mode_set(int ONOFF);
  void CRYPTO_free(void *ptr, const char *file, int line);
  int CRYPTO_memcmp(const void *a, const void *b, size_t len);
]]

local OPENSSL_free = function(ptr)
  -- file and line is for debuggin only, since we can't know the c file info
  -- the macro is expanded, just ignore this
  C.CRYPTO_free(ptr, "", 0)
end


return {
  OPENSSL_free = OPENSSL_free,
}