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_log.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_log.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bss_log.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/lib/libcrypto/bio/bss_log.c b/src/lib/libcrypto/bio/bss_log.c index 6aa2d8b0a4..ac1cbc5087 100644 --- a/src/lib/libcrypto/bio/bss_log.c +++ b/src/lib/libcrypto/bio/bss_log.c | |||
| @@ -86,15 +86,13 @@ static void xsyslog(BIO* bp, int priority, const char* string); | |||
| 86 | static void xcloselog(BIO* bp); | 86 | static void xcloselog(BIO* bp); |
| 87 | 87 | ||
| 88 | static BIO_METHOD methods_slg = { | 88 | static BIO_METHOD methods_slg = { |
| 89 | BIO_TYPE_MEM, "syslog", | 89 | .type = BIO_TYPE_MEM, |
| 90 | slg_write, | 90 | .name = "syslog", |
| 91 | NULL, | 91 | .bwrite = slg_write, |
| 92 | slg_puts, | 92 | .bputs = slg_puts, |
| 93 | NULL, | 93 | .ctrl = slg_ctrl, |
| 94 | slg_ctrl, | 94 | .create = slg_new, |
| 95 | slg_new, | 95 | .destroy = slg_free |
| 96 | slg_free, | ||
| 97 | NULL, | ||
| 98 | }; | 96 | }; |
| 99 | 97 | ||
| 100 | BIO_METHOD * | 98 | BIO_METHOD * |
