summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bf_lbuf.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_lbuf.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_lbuf.c')
-rw-r--r--src/lib/libcrypto/bio/bf_lbuf.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bio/bf_lbuf.c b/src/lib/libcrypto/bio/bf_lbuf.c
index f0bd0d709e..54c370d038 100644
--- a/src/lib/libcrypto/bio/bf_lbuf.c
+++ b/src/lib/libcrypto/bio/bf_lbuf.c
@@ -77,16 +77,16 @@ static long linebuffer_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
77/* #define DEBUG */ 77/* #define DEBUG */
78 78
79static BIO_METHOD methods_linebuffer = { 79static BIO_METHOD methods_linebuffer = {
80 BIO_TYPE_LINEBUFFER, 80 .type = BIO_TYPE_LINEBUFFER,
81 "linebuffer", 81 .name = "linebuffer",
82 linebuffer_write, 82 .bwrite = linebuffer_write,
83 linebuffer_read, 83 .bread = linebuffer_read,
84 linebuffer_puts, 84 .bputs = linebuffer_puts,
85 linebuffer_gets, 85 .bgets = linebuffer_gets,
86 linebuffer_ctrl, 86 .ctrl = linebuffer_ctrl,
87 linebuffer_new, 87 .create = linebuffer_new,
88 linebuffer_free, 88 .destroy = linebuffer_free,
89 linebuffer_callback_ctrl, 89 .callback_ctrl = linebuffer_callback_ctrl
90}; 90};
91 91
92BIO_METHOD * 92BIO_METHOD *