summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_pci.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_pci.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_pci.c')
-rw-r--r--src/lib/libcrypto/x509v3/v3_pci.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_pci.c b/src/lib/libcrypto/x509v3/v3_pci.c
index d19f5a6e61..ff1d087667 100644
--- a/src/lib/libcrypto/x509v3/v3_pci.c
+++ b/src/lib/libcrypto/x509v3/v3_pci.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: v3_pci.c,v 1.9 2015/07/19 01:20:32 doug Exp $ */ 1/* $OpenBSD: v3_pci.c,v 1.10 2015/07/29 16:13:49 jsing Exp $ */
2/* Contributed to the OpenSSL Project 2004 2/* Contributed to the OpenSSL Project 2004
3 * by Richard Levitte (richard@levitte.org) 3 * by Richard Levitte (richard@levitte.org)
4 */ 4 */
@@ -47,11 +47,20 @@ static PROXY_CERT_INFO_EXTENSION *r2i_pci(X509V3_EXT_METHOD *method,
47 X509V3_CTX *ctx, char *str); 47 X509V3_CTX *ctx, char *str);
48 48
49const X509V3_EXT_METHOD v3_pci = { 49const X509V3_EXT_METHOD v3_pci = {
50 NID_proxyCertInfo, 0, ASN1_ITEM_ref(PROXY_CERT_INFO_EXTENSION), 50 .ext_nid = NID_proxyCertInfo,
51 0, 0, 0, 0, 0, 0, NULL, NULL, 51 .ext_flags = 0,
52 (X509V3_EXT_I2R)i2r_pci, 52 .it = ASN1_ITEM_ref(PROXY_CERT_INFO_EXTENSION),
53 (X509V3_EXT_R2I)r2i_pci, 53 .ext_new = NULL,
54 NULL, 54 .ext_free = NULL,
55 .d2i = NULL,
56 .i2d = NULL,
57 .i2s = NULL,
58 .s2i = NULL,
59 .i2v = NULL,
60 .v2i = NULL,
61 .i2r = (X509V3_EXT_I2R)i2r_pci,
62 .r2i = (X509V3_EXT_R2I)r2i_pci,
63 .usr_data = NULL,
55}; 64};
56 65
57static int 66static int