summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_fd.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/bss_fd.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/bss_fd.c')
-rw-r--r--src/lib/libcrypto/bio/bss_fd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libcrypto/bio/bss_fd.c b/src/lib/libcrypto/bio/bss_fd.c
index 8ea80f1f65..04a88a155b 100644
--- a/src/lib/libcrypto/bio/bss_fd.c
+++ b/src/lib/libcrypto/bio/bss_fd.c
@@ -79,15 +79,15 @@ static int fd_free(BIO *data);
79int BIO_fd_should_retry(int s); 79int BIO_fd_should_retry(int s);
80 80
81static BIO_METHOD methods_fdp = { 81static BIO_METHOD methods_fdp = {
82 BIO_TYPE_FD, "file descriptor", 82 .type = BIO_TYPE_FD,
83 fd_write, 83 .name = "file descriptor",
84 fd_read, 84 .bwrite = fd_write,
85 fd_puts, 85 .bread = fd_read,
86 fd_gets, 86 .bputs = fd_puts,
87 fd_ctrl, 87 .bgets = fd_gets,
88 fd_new, 88 .ctrl = fd_ctrl,
89 fd_free, 89 .create = fd_new,
90 NULL, 90 .destroy = fd_free
91}; 91};
92 92
93BIO_METHOD * 93BIO_METHOD *