summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509v3/v3_enum.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-07-29 16:13:50 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-07-29 16:13:50 +0000
commit1f08bbb269484ed8c45fedf76d73c71fc83a8080 (patch)
tree411c8dbb6659a639c4c3ce2b82b7812aba66877b /lib/libcrypto/x509v3/v3_enum.c
parentd325e4ffc80c4429f84ba48bdb9863e46b45e668 (diff)
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 'lib/libcrypto/x509v3/v3_enum.c')
-rw-r--r--lib/libcrypto/x509v3/v3_enum.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/lib/libcrypto/x509v3/v3_enum.c b/lib/libcrypto/x509v3/v3_enum.c
index c09601edad2..7f35a570128 100644
--- a/lib/libcrypto/x509v3/v3_enum.c
+++ b/lib/libcrypto/x509v3/v3_enum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_enum.c,v 1.10 2014/07/13 16:03:10 beck Exp $ */
+/* $OpenBSD: v3_enum.c,v 1.11 2015/07/29 16:13:48 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -76,12 +76,20 @@ static ENUMERATED_NAMES crl_reasons[] = {
};
const X509V3_EXT_METHOD v3_crl_reason = {
- NID_crl_reason, 0, ASN1_ITEM_ref(ASN1_ENUMERATED),
- 0, 0, 0, 0,
- (X509V3_EXT_I2S)i2s_ASN1_ENUMERATED_TABLE,
- 0,
- 0, 0, 0, 0,
- crl_reasons
+ .ext_nid = NID_crl_reason,
+ .ext_flags = 0,
+ .it = ASN1_ITEM_ref(ASN1_ENUMERATED),
+ .ext_new = NULL,
+ .ext_free = NULL,
+ .d2i = NULL,
+ .i2d = NULL,
+ .i2s = (X509V3_EXT_I2S)i2s_ASN1_ENUMERATED_TABLE,
+ .s2i = NULL,
+ .i2v = NULL,
+ .v2i = NULL,
+ .i2r = NULL,
+ .r2i = NULL,
+ .usr_data = crl_reasons,
};
char *