diff options
author | miod <> | 2014-04-27 20:26:49 +0000 |
---|---|---|
committer | miod <> | 2014-04-27 20:26:49 +0000 |
commit | 45bb7f0ae87ddf787dd06d515db9afb04a74bf6c (patch) | |
tree | 319f4236c4f33e8d28d3d3a51c99e82d996e948f /src/lib/libcrypto/bio/bss_bio.c | |
parent | cbbb78bcf8e4dca14564fbea5fdfe0703e2951cc (diff) | |
download | openbsd-45bb7f0ae87ddf787dd06d515db9afb04a74bf6c.tar.gz openbsd-45bb7f0ae87ddf787dd06d515db9afb04a74bf6c.tar.bz2 openbsd-45bb7f0ae87ddf787dd06d515db9afb04a74bf6c.zip |
Use C99 initializers for the various FOO_METHOD structs. More readable, and
avoid unreadable/unmaintainable constructs like that:
const EVP_PKEY_ASN1_METHOD cmac_asn1_meth =
{
EVP_PKEY_CMAC,
EVP_PKEY_CMAC,
0,
"CMAC",
"OpenSSL CMAC method",
0,0,0,0,
0,0,0,
cmac_size,
0,
0,0,0,0,0,0,0,
cmac_key_free,
0,
0,0
};
ok matthew@ deraadt@
Diffstat (limited to 'src/lib/libcrypto/bio/bss_bio.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_bio.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bio/bss_bio.c b/src/lib/libcrypto/bio/bss_bio.c index d31e59872e..1a17cdf275 100644 --- a/src/lib/libcrypto/bio/bss_bio.c +++ b/src/lib/libcrypto/bio/bss_bio.c | |||
@@ -94,16 +94,14 @@ static int bio_make_pair(BIO *bio1, BIO *bio2); | |||
94 | static void bio_destroy_pair(BIO *bio); | 94 | static void bio_destroy_pair(BIO *bio); |
95 | 95 | ||
96 | static BIO_METHOD methods_biop = { | 96 | static BIO_METHOD methods_biop = { |
97 | BIO_TYPE_BIO, | 97 | .type = BIO_TYPE_BIO, |
98 | "BIO pair", | 98 | .name = "BIO pair", |
99 | bio_write, | 99 | .bwrite = bio_write, |
100 | bio_read, | 100 | .bread = bio_read, |
101 | bio_puts, | 101 | .bputs = bio_puts, |
102 | NULL /* no bio_gets */, | 102 | .ctrl = bio_ctrl, |
103 | bio_ctrl, | 103 | .create = bio_new, |
104 | bio_new, | 104 | .destroy = bio_free |
105 | bio_free, | ||
106 | NULL /* no bio_callback_ctrl */ | ||
107 | }; | 105 | }; |
108 | 106 | ||
109 | BIO_METHOD * | 107 | BIO_METHOD * |