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/engine/eng_padlock.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/engine/eng_padlock.c')
-rw-r--r-- | src/lib/libcrypto/engine/eng_padlock.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/engine/eng_padlock.c b/src/lib/libcrypto/engine/eng_padlock.c index d5d9a16bf2..c27181ba75 100644 --- a/src/lib/libcrypto/engine/eng_padlock.c +++ b/src/lib/libcrypto/engine/eng_padlock.c | |||
@@ -1086,12 +1086,9 @@ padlock_rand_status(void) | |||
1086 | 1086 | ||
1087 | /* Prepare structure for registration */ | 1087 | /* Prepare structure for registration */ |
1088 | static RAND_METHOD padlock_rand = { | 1088 | static RAND_METHOD padlock_rand = { |
1089 | NULL, /* seed */ | 1089 | .bytes = padlock_rand_bytes, |
1090 | padlock_rand_bytes, /* bytes */ | 1090 | .pseudorand = padlock_rand_bytes, |
1091 | NULL, /* cleanup */ | 1091 | .status = padlock_rand_status |
1092 | NULL, /* add */ | ||
1093 | padlock_rand_bytes, /* pseudorand */ | ||
1094 | padlock_rand_status, /* rand status */ | ||
1095 | }; | 1092 | }; |
1096 | 1093 | ||
1097 | #else /* !COMPILE_HW_PADLOCK */ | 1094 | #else /* !COMPILE_HW_PADLOCK */ |