Repair unrolling of static ASN1_ITEM IPAddrBlocks_it
authorjob <job@openbsd.org>
Thu, 2 Sep 2021 21:29:35 +0000 (21:29 +0000)
committerjob <job@openbsd.org>
Thu, 2 Sep 2021 21:29:35 +0000 (21:29 +0000)
The conversion tool didn't handle 'static_ASN1_ITEM_TEMPLATE_END'

OK tb@

lib/libcrypto/x509/x509_addr.c

index 95f1791..d23981b 100644 (file)
@@ -147,6 +147,17 @@ static const ASN1_TEMPLATE IPAddrBlocks_item_tt = {
        .item = &IPAddressFamily_it,
 };
 
+/* XXX: maybe special? */
+static const ASN1_ITEM IPAddrBlocks_it = {
+       .itype = ASN1_ITYPE_PRIMITIVE,
+       .utype = -1,
+       .templates = &IPAddrBlocks_item_tt,
+       .tcount = 0,
+       .funcs = NULL,
+       .size = 0,
+       .sname = "IPAddrBlocks",
+};
+
 IPAddressRange *
 d2i_IPAddressRange(IPAddressRange **a, const unsigned char **in, long len)
 {