| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/imunify360-webshield/lualib/resty/openssl/include/ |
Upload File : |
local ffi = require "ffi"
require "resty.openssl.include.ossl_typ"
require "resty.openssl.include.stack"
local OPENSSL_3X = require("resty.openssl.version").OPENSSL_3X
ffi.cdef [[
// hack by changing char* to const char* here
PKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey, X509 *cert,
OPENSSL_STACK *ca, // STACK_OF(X509)
int nid_key, int nid_cert, int iter, int mac_iter, int keytype);
int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
OPENSSL_STACK **ca); // STACK_OF(X509) **ca);
void PKCS12_free(PKCS12 *p12);
int i2d_PKCS12_bio(BIO *bp, PKCS12 *a);
PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **a);
]]
if OPENSSL_3X then
ffi.cdef [[
PKCS12 *PKCS12_create_ex(const char *pass, const char *name, EVP_PKEY *pkey,
X509 *cert,
OPENSSL_STACK *ca, // STACK_OF(X509)
int nid_key, int nid_cert,
int iter, int mac_iter, int keytype,
OSSL_LIB_CTX *ctx, const char *propq);
]]
end