diff options
author | tb <> | 2021-12-25 15:42:32 +0000 |
---|---|---|
committer | tb <> | 2021-12-25 15:42:32 +0000 |
commit | 4b7d9358023de29df50f078ca8c8b2c68a2e3113 (patch) | |
tree | 5f6bc45ef9045686d3292fec026277c6f54d85c6 /src/lib/libcrypto/x509/x509_asid.c | |
parent | f2a8b7b1604d94d3feae0cdb83aff3c6318aa9fc (diff) | |
download | openbsd-4b7d9358023de29df50f078ca8c8b2c68a2e3113.tar.gz openbsd-4b7d9358023de29df50f078ca8c8b2c68a2e3113.tar.bz2 openbsd-4b7d9358023de29df50f078ca8c8b2c68a2e3113.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_asid.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_asid.c | 27 |
1 files changed, 15 insertions, 12 deletions
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 | */ |
881 | const X509V3_EXT_METHOD v3_asid = { | 881 | const 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 | /* |