From e42fe416823407812934f912df3b055a48f8fe0c Mon Sep 17 00:00:00 2001 From: job Date: Thu, 2 Sep 2021 21:04:01 +0000 Subject: [PATCH] Unroll ASN1_EX_TEMPLATE_TYPE IPAddrBlocks OK tb@ --- lib/libcrypto/x509/x509_addr.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/x509/x509_addr.c b/lib/libcrypto/x509/x509_addr.c index 7a2e152c873..7a35b21332b 100644 --- a/lib/libcrypto/x509/x509_addr.c +++ b/lib/libcrypto/x509/x509_addr.c @@ -138,10 +138,13 @@ const ASN1_ITEM IPAddressFamily_it = { .sname = "IPAddressFamily", }; -static const ASN1_TEMPLATE IPAddrBlocks_item_tt = - ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, IPAddrBlocks, - IPAddressFamily) -static_ASN1_ITEM_TEMPLATE_END(IPAddrBlocks) +static const ASN1_TEMPLATE IPAddrBlocks_item_tt = { + .flags = ASN1_TFLG_SEQUENCE_OF, + .tag = 0, + .offset = 0, + .field_name = "IPAddrBlocks", + .item = &IPAddressFamily_it, +}; IPAddressRange * d2i_IPAddressRange(IPAddressRange **a, const unsigned char **in, long len) -- 2.20.1