示例#1
0
文件: x509.c 项目: horazont/luasec
/**
 * 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)));
}
示例#2
0
文件: x509.c 项目: horazont/luasec
/**
 * 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)));
}
示例#3
0
文件: x509.c 项目: Chingliu/luasec
/**
 * 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);
}