summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bf_nbio.c
diff options
context:
space:
mode:
authormiod <>2014-04-27 20:26:49 +0000
committermiod <>2014-04-27 20:26:49 +0000
commit45bb7f0ae87ddf787dd06d515db9afb04a74bf6c (patch)
tree319f4236c4f33e8d28d3d3a51c99e82d996e948f /src/lib/libcrypto/bio/bf_nbio.c
parentcbbb78bcf8e4dca14564fbea5fdfe0703e2951cc (diff)
downloadopenbsd-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/bf_nbio.c')
-rw-r--r--src/lib/libcrypto/bio/bf_nbio.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bio/bf_nbio.c b/src/lib/libcrypto/bio/bf_nbio.c
index 048e6892cc..5a0f6b276a 100644
--- a/src/lib/libcrypto/bio/bf_nbio.c
+++ b/src/lib/libcrypto/bio/bf_nbio.c
@@ -81,16 +81,16 @@ typedef struct nbio_test_st {
81} NBIO_TEST; 81} NBIO_TEST;
82 82
83static BIO_METHOD methods_nbiof = { 83static BIO_METHOD methods_nbiof = {
84 BIO_TYPE_NBIO_TEST, 84 .type = BIO_TYPE_NBIO_TEST,
85 "non-blocking IO test filter", 85 .name = "non-blocking IO test filter",
86 nbiof_write, 86 .bwrite = nbiof_write,
87 nbiof_read, 87 .bread = nbiof_read,
88 nbiof_puts, 88 .bputs = nbiof_puts,
89 nbiof_gets, 89 .bgets = nbiof_gets,
90 nbiof_ctrl, 90 .ctrl = nbiof_ctrl,
91 nbiof_new, 91 .create = nbiof_new,
92 nbiof_free, 92 .destroy = nbiof_free,
93 nbiof_callback_ctrl, 93 .callback_ctrl = nbiof_callback_ctrl
94}; 94};
95 95
96BIO_METHOD * 96BIO_METHOD *