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_acpt.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_acpt.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_acpt.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bio/bss_acpt.c b/src/lib/libcrypto/bio/bss_acpt.c index 916af3cb20..943d3d9d96 100644 --- a/src/lib/libcrypto/bio/bss_acpt.c +++ b/src/lib/libcrypto/bio/bss_acpt.c | |||
@@ -98,16 +98,14 @@ static void BIO_ACCEPT_free(BIO_ACCEPT *a); | |||
98 | #define ACPT_S_OK 3 | 98 | #define ACPT_S_OK 3 |
99 | 99 | ||
100 | static BIO_METHOD methods_acceptp = { | 100 | static BIO_METHOD methods_acceptp = { |
101 | BIO_TYPE_ACCEPT, | 101 | .type = BIO_TYPE_ACCEPT, |
102 | "socket accept", | 102 | .name = "socket accept", |
103 | acpt_write, | 103 | .bwrite = acpt_write, |
104 | acpt_read, | 104 | .bread = acpt_read, |
105 | acpt_puts, | 105 | .bputs = acpt_puts, |
106 | NULL, /* connect_gets, */ | 106 | .ctrl = acpt_ctrl, |
107 | acpt_ctrl, | 107 | .create = acpt_new, |
108 | acpt_new, | 108 | .destroy = acpt_free |
109 | acpt_free, | ||
110 | NULL, | ||
111 | }; | 109 | }; |
112 | 110 | ||
113 | BIO_METHOD * | 111 | BIO_METHOD * |