diff options
author | jsing <> | 2015-07-29 16:13:49 +0000 |
---|---|---|
committer | jsing <> | 2015-07-29 16:13:49 +0000 |
commit | 6a72ca90e8e4257c1656bef69f6deeeac4ac3cb6 (patch) | |
tree | af66362d049ee3d67f52261defee582a9529f2d0 /src/lib/libcrypto/x509v3/v3_int.c | |
parent | 4b2596fb0f28cb59c8918b16cdae591454312175 (diff) | |
download | openbsd-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_int.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_int.c | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_int.c b/src/lib/libcrypto/x509v3/v3_int.c index e1f6eb1c0a..bd059b7269 100644 --- a/src/lib/libcrypto/x509v3/v3_int.c +++ b/src/lib/libcrypto/x509v3/v3_int.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_int.c,v 1.9 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: v3_int.c,v 1.10 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 | */ |
@@ -61,21 +61,37 @@ | |||
61 | #include <openssl/x509v3.h> | 61 | #include <openssl/x509v3.h> |
62 | 62 | ||
63 | const X509V3_EXT_METHOD v3_crl_num = { | 63 | const X509V3_EXT_METHOD v3_crl_num = { |
64 | NID_crl_number, 0, ASN1_ITEM_ref(ASN1_INTEGER), | 64 | .ext_nid = NID_crl_number, |
65 | 0, 0, 0, 0, | 65 | .ext_flags = 0, |
66 | (X509V3_EXT_I2S)i2s_ASN1_INTEGER, | 66 | .it = ASN1_ITEM_ref(ASN1_INTEGER), |
67 | 0, | 67 | .ext_new = NULL, |
68 | 0, 0, 0, 0, | 68 | .ext_free = NULL, |
69 | NULL | 69 | .d2i = NULL, |
70 | .i2d = NULL, | ||
71 | .i2s = (X509V3_EXT_I2S)i2s_ASN1_INTEGER, | ||
72 | .s2i = NULL, | ||
73 | .i2v = NULL, | ||
74 | .v2i = NULL, | ||
75 | .i2r = NULL, | ||
76 | .r2i = NULL, | ||
77 | .usr_data = NULL, | ||
70 | }; | 78 | }; |
71 | 79 | ||
72 | const X509V3_EXT_METHOD v3_delta_crl = { | 80 | const X509V3_EXT_METHOD v3_delta_crl = { |
73 | NID_delta_crl, 0, ASN1_ITEM_ref(ASN1_INTEGER), | 81 | .ext_nid = NID_delta_crl, |
74 | 0, 0, 0, 0, | 82 | .ext_flags = 0, |
75 | (X509V3_EXT_I2S)i2s_ASN1_INTEGER, | 83 | .it = ASN1_ITEM_ref(ASN1_INTEGER), |
76 | 0, | 84 | .ext_new = NULL, |
77 | 0, 0, 0, 0, | 85 | .ext_free = NULL, |
78 | NULL | 86 | .d2i = NULL, |
87 | .i2d = NULL, | ||
88 | .i2s = (X509V3_EXT_I2S)i2s_ASN1_INTEGER, | ||
89 | .s2i = NULL, | ||
90 | .i2v = NULL, | ||
91 | .v2i = NULL, | ||
92 | .i2r = NULL, | ||
93 | .r2i = NULL, | ||
94 | .usr_data = NULL, | ||
79 | }; | 95 | }; |
80 | 96 | ||
81 | static void * | 97 | static void * |