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_sxnet.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_sxnet.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_sxnet.c | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_sxnet.c b/src/lib/libcrypto/x509v3/v3_sxnet.c index 546b790782..c10feed0ef 100644 --- a/src/lib/libcrypto/x509v3/v3_sxnet.c +++ b/src/lib/libcrypto/x509v3/v3_sxnet.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_sxnet.c,v 1.15 2015/07/29 14:58:34 jsing Exp $ */ | 1 | /* $OpenBSD: v3_sxnet.c,v 1.16 2015/07/29 16:13:49 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 | */ |
@@ -75,19 +75,26 @@ static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, | |||
75 | static SXNET * sxnet_v2i(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, | 75 | static SXNET * sxnet_v2i(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, |
76 | STACK_OF(CONF_VALUE) *nval); | 76 | STACK_OF(CONF_VALUE) *nval); |
77 | #endif | 77 | #endif |
78 | |||
78 | const X509V3_EXT_METHOD v3_sxnet = { | 79 | const X509V3_EXT_METHOD v3_sxnet = { |
79 | NID_sxnet, X509V3_EXT_MULTILINE, ASN1_ITEM_ref(SXNET), | 80 | .ext_nid = NID_sxnet, |
80 | 0, 0, 0, 0, | 81 | .ext_flags = X509V3_EXT_MULTILINE, |
81 | 0, 0, | 82 | .it = ASN1_ITEM_ref(SXNET), |
82 | 0, | 83 | .ext_new = NULL, |
84 | .ext_free = NULL, | ||
85 | .d2i = NULL, | ||
86 | .i2d = NULL, | ||
87 | .i2s = NULL, | ||
88 | .s2i = NULL, | ||
89 | .i2v = NULL, | ||
83 | #ifdef SXNET_TEST | 90 | #ifdef SXNET_TEST |
84 | (X509V3_EXT_V2I)sxnet_v2i, | 91 | .v2i = (X509V3_EXT_V2I)sxnet_v2i, |
85 | #else | 92 | #else |
86 | 0, | 93 | .v2i = NULL, |
87 | #endif | 94 | #endif |
88 | (X509V3_EXT_I2R)sxnet_i2r, | 95 | .i2r = (X509V3_EXT_I2R)sxnet_i2r, |
89 | 0, | 96 | .r2i = NULL, |
90 | NULL | 97 | .usr_data = NULL, |
91 | }; | 98 | }; |
92 | 99 | ||
93 | static const ASN1_TEMPLATE SXNETID_seq_tt[] = { | 100 | static const ASN1_TEMPLATE SXNETID_seq_tt[] = { |