mirror of
https://github.com/brunoos/luasec.git
synced 2024-12-26 12:48:20 +01: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;
|
||||
|
||||
/* Push ret[oid] */
|
||||
push_asn1_objname(L, extension->object, 1);
|
||||
push_asn1_objname(L, X509_EXTENSION_get_object(extension), 1);
|
||||
push_subtable(L, -2);
|
||||
|
||||
/* 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");
|
||||
|
||||
n_general_names = sk_GENERAL_NAME_num(values);
|
||||
|
Loading…
Reference in New Issue
Block a user