summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2021-09-02 21:04:02 +0000
committerJob Snijders <job@cvs.openbsd.org>2021-09-02 21:04:02 +0000
commit715121dbd6d891305e9eeb47a52e22aac2ba213a (patch)
treef8a02d58c6a2e3d9ad32383f6ea900e5ab8714e2 /lib/libcrypto
parent6f60c0cd3452dd0b71078b1fc7b781c30973b9c6 (diff)
Unroll ASN1_EX_TEMPLATE_TYPE IPAddrBlocks
OK tb@
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)