summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509
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
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')
-rw-r--r--src/lib/libcrypto/x509/x509_addr.c27
-rw-r--r--src/lib/libcrypto/x509/x509_asid.c27
2 files changed, 30 insertions, 24 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/*
diff --git a/src/lib/libcrypto/x509/x509_asid.c b/src/lib/libcrypto/x509/x509_asid.c
index 2b4f09d6e6..648f185748 100644
--- a/src/lib/libcrypto/x509/x509_asid.c
+++ b/src/lib/libcrypto/x509/x509_asid.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_asid.c,v 1.28 2021/12/24 02:30:15 tb Exp $ */ 1/* $OpenBSD: x509_asid.c,v 1.29 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").
@@ -879,17 +879,20 @@ v2i_ASIdentifiers(const struct v3_ext_method *method, struct v3_ext_ctx *ctx,
879 * OpenSSL dispatch. 879 * OpenSSL dispatch.
880 */ 880 */
881const X509V3_EXT_METHOD v3_asid = { 881const X509V3_EXT_METHOD v3_asid = {
882 NID_sbgp_autonomousSysNum, /* nid */ 882 .ext_nid = NID_sbgp_autonomousSysNum,
883 0, /* flags */ 883 .ext_flags = 0,
884 &ASIdentifiers_it, /* template */ 884 .it = &ASIdentifiers_it,
885 0, 0, 0, 0, /* old functions, ignored */ 885 .ext_new = NULL,
886 0, /* i2s */ 886 .ext_free = NULL,
887 0, /* s2i */ 887 .d2i = NULL,
888 0, /* i2v */ 888 .i2d = NULL,
889 v2i_ASIdentifiers, /* v2i */ 889 .i2s = NULL,
890 i2r_ASIdentifiers, /* i2r */ 890 .s2i = NULL,
891 0, /* r2i */ 891 .i2v = NULL,
892 NULL /* extension-specific data */ 892 .v2i = v2i_ASIdentifiers,
893 .i2r = i2r_ASIdentifiers,
894 .r2i = NULL,
895 .usr_data = NULL,
893}; 896};
894 897
895/* 898/*