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/ui | |
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/ui')
-rw-r--r-- | src/lib/libcrypto/ui/ui_openssl.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c index d3be332f19..3b79ecaf02 100644 --- a/src/lib/libcrypto/ui/ui_openssl.c +++ b/src/lib/libcrypto/ui/ui_openssl.c | |||
@@ -157,13 +157,11 @@ static int noecho_console(UI *ui); | |||
157 | static int close_console(UI *ui); | 157 | static int close_console(UI *ui); |
158 | 158 | ||
159 | static UI_METHOD ui_openssl = { | 159 | static UI_METHOD ui_openssl = { |
160 | "OpenSSL default user interface", | 160 | .name = "OpenSSL default user interface", |
161 | open_console, | 161 | .ui_open_session = open_console, |
162 | write_string, | 162 | .ui_write_string = write_string, |
163 | NULL, /* No flusher is needed for command lines */ | 163 | .ui_read_string = read_string, |
164 | read_string, | 164 | .ui_close_session = close_console, |
165 | close_console, | ||
166 | NULL | ||
167 | }; | 165 | }; |
168 | 166 | ||
169 | /* The method with all the built-in thingies */ | 167 | /* The method with all the built-in thingies */ |