Package: lua-sec / 0.6-3

0007-Use-X509_EXTENSION_get_object-to-get-the-object-fiel.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Bruno Silvestre <brunoos@inf.ufg.br>
Date: Tue, 13 Sep 2016 13:22:25 -0300
Subject: 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);