/** * Retrive the Subject from the certificate. */ static int meth_subject(lua_State* L) { return push_x509_name(L, X509_get_subject_name(lsec_checkx509(L, 1))); }
/** * Retrive the Issuer from the certificate. */ static int meth_issuer(lua_State* L) { return push_x509_name(L, X509_get_issuer_name(lsec_checkx509(L, 1))); }
/** * Retrive the Issuer from the certificate. */ static int meth_issuer(lua_State* L) { p_x509 px = lsec_checkp_x509(L, 1); return push_x509_name(L, X509_get_issuer_name(px->cert), px->encode); }