summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/x509/x509_addr.c11
1 files 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)