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_conn.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_conn.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_conn.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bio/bss_conn.c b/src/lib/libcrypto/bio/bss_conn.c index d7a8619b38..7ed8f1fe31 100644 --- a/src/lib/libcrypto/bio/bss_conn.c +++ b/src/lib/libcrypto/bio/bss_conn.c | |||
@@ -103,16 +103,15 @@ BIO_CONNECT *BIO_CONNECT_new(void); | |||
103 | void BIO_CONNECT_free(BIO_CONNECT *a); | 103 | void BIO_CONNECT_free(BIO_CONNECT *a); |
104 | 104 | ||
105 | static BIO_METHOD methods_connectp = { | 105 | static BIO_METHOD methods_connectp = { |
106 | BIO_TYPE_CONNECT, | 106 | .type = BIO_TYPE_CONNECT, |
107 | "socket connect", | 107 | .name = "socket connect", |
108 | conn_write, | 108 | .bwrite = conn_write, |
109 | conn_read, | 109 | .bread = conn_read, |
110 | conn_puts, | 110 | .bputs = conn_puts, |
111 | NULL, /* connect_gets, */ | 111 | .ctrl = conn_ctrl, |
112 | conn_ctrl, | 112 | .create = conn_new, |
113 | conn_new, | 113 | .destroy = conn_free, |
114 | conn_free, | 114 | .callback_ctrl = conn_callback_ctrl |
115 | conn_callback_ctrl, | ||
116 | }; | 115 | }; |
117 | 116 | ||
118 | static int | 117 | static int |