diff options
| author | miod <> | 2014-04-27 20:26:49 +0000 |
|---|---|---|
| committer | miod <> | 2014-04-27 20:26:49 +0000 |
| commit | b5544d0885b7b6ceebce880a188724826a8fc5e9 (patch) | |
| tree | 319f4236c4f33e8d28d3d3a51c99e82d996e948f /src/lib/libcrypto/dsa/dsa_ossl.c | |
| parent | 3192965f7c3dc7bef981bbbf1d40f6e3be9fcf5d (diff) | |
| download | openbsd-b5544d0885b7b6ceebce880a188724826a8fc5e9.tar.gz openbsd-b5544d0885b7b6ceebce880a188724826a8fc5e9.tar.bz2 openbsd-b5544d0885b7b6ceebce880a188724826a8fc5e9.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/dsa/dsa_ossl.c')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_ossl.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_ossl.c b/src/lib/libcrypto/dsa/dsa_ossl.c index b3d78e524c..7e0e3b006e 100644 --- a/src/lib/libcrypto/dsa/dsa_ossl.c +++ b/src/lib/libcrypto/dsa/dsa_ossl.c | |||
| @@ -74,18 +74,12 @@ static int dsa_init(DSA *dsa); | |||
| 74 | static int dsa_finish(DSA *dsa); | 74 | static int dsa_finish(DSA *dsa); |
| 75 | 75 | ||
| 76 | static DSA_METHOD openssl_dsa_meth = { | 76 | static DSA_METHOD openssl_dsa_meth = { |
| 77 | "OpenSSL DSA method", | 77 | .name = "OpenSSL DSA method", |
| 78 | dsa_do_sign, | 78 | .dsa_do_sign = dsa_do_sign, |
| 79 | dsa_sign_setup, | 79 | .dsa_sign_setup = dsa_sign_setup, |
| 80 | dsa_do_verify, | 80 | .dsa_do_verify = dsa_do_verify, |
| 81 | NULL, /* dsa_mod_exp, */ | 81 | .init = dsa_init, |
| 82 | NULL, /* dsa_bn_mod_exp, */ | 82 | .finish = dsa_finish |
| 83 | dsa_init, | ||
| 84 | dsa_finish, | ||
| 85 | 0, | ||
| 86 | NULL, | ||
| 87 | NULL, | ||
| 88 | NULL | ||
| 89 | }; | 83 | }; |
| 90 | 84 | ||
| 91 | /* These macro wrappers replace attempts to use the dsa_mod_exp() and | 85 | /* These macro wrappers replace attempts to use the dsa_mod_exp() and |
