static int openssl_xattr_info(lua_State*L) { X509_ATTRIBUTE* attr = CHECK_OBJECT(1, X509_ATTRIBUTE, "openssl.x509_attribute"); int utf8 = lua_isnoneornil(L, 2) ? 1 : lua_toboolean(L, 2); return openssl_xattr_totable(L, attr, utf8); }
static int openssl_xattr_info(lua_State*L) { X509_ATTRIBUTE* attr = CHECK_OBJECT(1, X509_ATTRIBUTE, "openssl.x509_attribute"); return openssl_xattr_totable(L, attr); }