summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_enum.c
diff options
context:
space:
mode:
authorjsing <>2015-07-29 16:13:49 +0000
committerjsing <>2015-07-29 16:13:49 +0000
commit6a72ca90e8e4257c1656bef69f6deeeac4ac3cb6 (patch)
treeaf66362d049ee3d67f52261defee582a9529f2d0 /src/lib/libcrypto/x509v3/v3_enum.c
parent4b2596fb0f28cb59c8918b16cdae591454312175 (diff)
downloadopenbsd-6a72ca90e8e4257c1656bef69f6deeeac4ac3cb6.tar.gz
openbsd-6a72ca90e8e4257c1656bef69f6deeeac4ac3cb6.tar.bz2
openbsd-6a72ca90e8e4257c1656bef69f6deeeac4ac3cb6.zip
Use named initialisers for X509V3_EXT_METHOD structs (for the usual
reasons) - only change in generated assembly is due to line numbering.
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_enum.c')
-rw-r--r--src/lib/libcrypto/x509v3/v3_enum.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_enum.c b/src/lib/libcrypto/x509v3/v3_enum.c
index c09601edad..7f35a57012 100644
--- a/src/lib/libcrypto/x509v3/v3_enum.c
+++ b/src/lib/libcrypto/x509v3/v3_enum.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: v3_enum.c,v 1.10 2014/07/13 16:03:10 beck Exp $ */ 1/* $OpenBSD: v3_enum.c,v 1.11 2015/07/29 16:13:48 jsing Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -76,12 +76,20 @@ static ENUMERATED_NAMES crl_reasons[] = {
76}; 76};
77 77
78const X509V3_EXT_METHOD v3_crl_reason = { 78const X509V3_EXT_METHOD v3_crl_reason = {
79 NID_crl_reason, 0, ASN1_ITEM_ref(ASN1_ENUMERATED), 79 .ext_nid = NID_crl_reason,
80 0, 0, 0, 0, 80 .ext_flags = 0,
81 (X509V3_EXT_I2S)i2s_ASN1_ENUMERATED_TABLE, 81 .it = ASN1_ITEM_ref(ASN1_ENUMERATED),
82 0, 82 .ext_new = NULL,
83 0, 0, 0, 0, 83 .ext_free = NULL,
84 crl_reasons 84 .d2i = NULL,
85 .i2d = NULL,
86 .i2s = (X509V3_EXT_I2S)i2s_ASN1_ENUMERATED_TABLE,
87 .s2i = NULL,
88 .i2v = NULL,
89 .v2i = NULL,
90 .i2r = NULL,
91 .r2i = NULL,
92 .usr_data = crl_reasons,
85}; 93};
86 94
87char * 95char *