summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_addr.c
diff options
context:
space:
mode:
authortb <>2021-12-25 15:42:32 +0000
committertb <>2021-12-25 15:42:32 +0000
commitdd5e1d57991d1ff4920aa1a99d43df992335da1a (patch)
tree5f6bc45ef9045686d3292fec026277c6f54d85c6 /src/lib/libcrypto/x509/x509_addr.c
parent6be80228ce6e3d007c240fd309c7e08520677576 (diff)
downloadopenbsd-dd5e1d57991d1ff4920aa1a99d43df992335da1a.tar.gz
openbsd-dd5e1d57991d1ff4920aa1a99d43df992335da1a.tar.bz2
openbsd-dd5e1d57991d1ff4920aa1a99d43df992335da1a.zip
Use C99 initializers for v3_addr, v3_asid and v3_ct_scts[]
as is done for most other X.509 v3 extension methods. discussed with jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_addr.c')
-rw-r--r--src/lib/libcrypto/x509/x509_addr.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/lib/libcrypto/x509/x509_addr.c b/src/lib/libcrypto/x509/x509_addr.c
index db9ea089f6..418bddf8b1 100644
--- a/src/lib/libcrypto/x509/x509_addr.c
+++ b/src/lib/libcrypto/x509/x509_addr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_addr.c,v 1.25 2021/12/24 10:09:44 tb Exp $ */ 1/* $OpenBSD: x509_addr.c,v 1.26 2021/12/25 15:42:32 tb Exp $ */
2/* 2/*
3 * Contributed to the OpenSSL Project by the American Registry for 3 * Contributed to the OpenSSL Project by the American Registry for
4 * Internet Numbers ("ARIN"). 4 * Internet Numbers ("ARIN").
@@ -1366,17 +1366,20 @@ v2i_IPAddrBlocks(const struct v3_ext_method *method, struct v3_ext_ctx *ctx,
1366 * OpenSSL dispatch 1366 * OpenSSL dispatch
1367 */ 1367 */
1368const X509V3_EXT_METHOD v3_addr = { 1368const X509V3_EXT_METHOD v3_addr = {
1369 NID_sbgp_ipAddrBlock, /* nid */ 1369 .ext_nid = NID_sbgp_ipAddrBlock,
1370 0, /* flags */ 1370 .ext_flags = 0,
1371 &IPAddrBlocks_it, 1371 .it = &IPAddrBlocks_it,
1372 0, 0, 0, 0, /* old functions, ignored */ 1372 .ext_new = NULL,
1373 0, /* i2s */ 1373 .ext_free = NULL,
1374 0, /* s2i */ 1374 .d2i = NULL,
1375 0, /* i2v */ 1375 .i2d = NULL,
1376 v2i_IPAddrBlocks, /* v2i */ 1376 .i2s = NULL,
1377 i2r_IPAddrBlocks, /* i2r */ 1377 .s2i = NULL,
1378 0, /* r2i */ 1378 .i2v = NULL,
1379 NULL /* extension-specific data */ 1379 .v2i = v2i_IPAddrBlocks,
1380 .i2r = i2r_IPAddrBlocks,
1381 .r2i = NULL,
1382 .usr_data = NULL,
1380}; 1383};
1381 1384
1382/* 1385/*