diff options
author | jsing <> | 2019-03-31 14:39:15 +0000 |
---|---|---|
committer | jsing <> | 2019-03-31 14:39:15 +0000 |
commit | 7b12ab45f21197a981f1b592f0f36856d5d88f45 (patch) | |
tree | edd205d0b3c940250815936ebb6ace4f5395df0a /src/lib/libcrypto/asn1/x_long.c | |
parent | 502bd640cba5f749658c774871c52ac1c682e80e (diff) | |
download | openbsd-7b12ab45f21197a981f1b592f0f36856d5d88f45.tar.gz openbsd-7b12ab45f21197a981f1b592f0f36856d5d88f45.tar.bz2 openbsd-7b12ab45f21197a981f1b592f0f36856d5d88f45.zip |
Use named field initialisers.
Diffstat (limited to 'src/lib/libcrypto/asn1/x_long.c')
-rw-r--r-- | src/lib/libcrypto/asn1/x_long.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/libcrypto/asn1/x_long.c b/src/lib/libcrypto/asn1/x_long.c index 9df3a3181a..b598937dcd 100644 --- a/src/lib/libcrypto/asn1/x_long.c +++ b/src/lib/libcrypto/asn1/x_long.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x_long.c,v 1.11 2017/01/29 17:49:22 beck Exp $ */ | 1 | /* $OpenBSD: x_long.c,v 1.12 2019/03/31 14:39:15 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 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -76,13 +76,14 @@ static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int u | |||
76 | static int long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx); | 76 | static int long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx); |
77 | 77 | ||
78 | static ASN1_PRIMITIVE_FUNCS long_pf = { | 78 | static ASN1_PRIMITIVE_FUNCS long_pf = { |
79 | NULL, 0, | 79 | .app_data = NULL, |
80 | long_new, | 80 | .flags = 0, |
81 | long_free, | 81 | .prim_new = long_new, |
82 | long_free, /* Clear should set to initial value */ | 82 | .prim_free = long_free, |
83 | long_c2i, | 83 | .prim_clear = long_free, /* Clear should set to initial value */ |
84 | long_i2c, | 84 | .prim_c2i = long_c2i, |
85 | long_print | 85 | .prim_i2c = long_i2c, |
86 | .prim_print = long_print, | ||
86 | }; | 87 | }; |
87 | 88 | ||
88 | const ASN1_ITEM LONG_it = { | 89 | const ASN1_ITEM LONG_it = { |