From 53db804b9d56a029b7afea4ba74f8eb23b3e8e47 Mon Sep 17 00:00:00 2001 From: Bruno Silvestre Date: Tue, 13 Sep 2016 13:22:25 -0300 Subject: [PATCH] Use X509_EXTENSION_get_object() to get the 'object' field from extension --- src/x509.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x509.c b/src/x509.c index a8cb9fd..207d682 100644 --- a/src/x509.c +++ b/src/x509.c @@ -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);