mirror of
https://github.com/brunoos/luasec.git
synced 2024-09-07 05:14:43 +02:00
Use X509_EXTENSION_get_object() to get the 'object' field from extension
This commit is contained in:
parent
22e6652d88
commit
53db804b9d
@ -304,11 +304,11 @@ int meth_extensions(lua_State* L)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* Push ret[oid] */
|
/* Push ret[oid] */
|
||||||
push_asn1_objname(L, extension->object, 1);
|
push_asn1_objname(L, X509_EXTENSION_get_object(extension), 1);
|
||||||
push_subtable(L, -2);
|
push_subtable(L, -2);
|
||||||
|
|
||||||
/* Set ret[oid].name = name */
|
/* Set ret[oid].name = name */
|
||||||
push_asn1_objname(L, extension->object, 0);
|
push_asn1_objname(L, X509_EXTENSION_get_object(extension), 0);
|
||||||
lua_setfield(L, -2, "name");
|
lua_setfield(L, -2, "name");
|
||||||
|
|
||||||
n_general_names = sk_GENERAL_NAME_num(values);
|
n_general_names = sk_GENERAL_NAME_num(values);
|
||||||
|
Loading…
Reference in New Issue
Block a user