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 | |
parent | 502bd640cba5f749658c774871c52ac1c682e80e (diff) | |
download | openbsd-7b12ab45f21197a981f1b592f0f36856d5d88f45.tar.gz openbsd-7b12ab45f21197a981f1b592f0f36856d5d88f45.tar.bz2 openbsd-7b12ab45f21197a981f1b592f0f36856d5d88f45.zip |
Use named field initialisers.
-rw-r--r-- | src/lib/libcrypto/asn1/x_bignum.c | 17 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/x_long.c | 17 |
2 files changed, 18 insertions, 16 deletions
diff --git a/src/lib/libcrypto/asn1/x_bignum.c b/src/lib/libcrypto/asn1/x_bignum.c index 73f0f73c1c..a5a307eff7 100644 --- a/src/lib/libcrypto/asn1/x_bignum.c +++ b/src/lib/libcrypto/asn1/x_bignum.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x_bignum.c,v 1.8 2015/07/25 17:07:17 jsing Exp $ */ | 1 | /* $OpenBSD: x_bignum.c,v 1.9 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 | */ |
@@ -77,13 +77,14 @@ static int bn_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, | |||
77 | int utype, char *free_cont, const ASN1_ITEM *it); | 77 | int utype, char *free_cont, const ASN1_ITEM *it); |
78 | 78 | ||
79 | static ASN1_PRIMITIVE_FUNCS bignum_pf = { | 79 | static ASN1_PRIMITIVE_FUNCS bignum_pf = { |
80 | NULL, | 80 | .app_data = NULL, |
81 | 0, | 81 | .flags = 0, |
82 | bn_new, | 82 | .prim_new = bn_new, |
83 | bn_free, | 83 | .prim_free = bn_free, |
84 | 0, | 84 | .prim_clear = NULL, /* XXX */ |
85 | bn_c2i, | 85 | .prim_c2i = bn_c2i, |
86 | bn_i2c | 86 | .prim_i2c = bn_i2c, |
87 | .prim_print = NULL, | ||
87 | }; | 88 | }; |
88 | 89 | ||
89 | const ASN1_ITEM BIGNUM_it = { | 90 | const ASN1_ITEM BIGNUM_it = { |
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 = { |