summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/dsa/dsa_ossl.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-04-27 20:26:46 +0000
committermiod <miod@openbsd.org>2014-04-27 20:26:46 +0000
commite402ce74af92e11cf51406acbd53f28852df7c32 (patch)
tree060921ecfca28854f412a301d88d7bf299dd30ec /lib/libcrypto/dsa/dsa_ossl.c
parentstatic const char * = "" -> static const char[] = "", to produce shorter code. (diff)
downloadwireguard-openbsd-e402ce74af92e11cf51406acbd53f28852df7c32.tar.xz
wireguard-openbsd-e402ce74af92e11cf51406acbd53f28852df7c32.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 'lib/libcrypto/dsa/dsa_ossl.c')
-rw-r--r--lib/libcrypto/dsa/dsa_ossl.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/libcrypto/dsa/dsa_ossl.c b/lib/libcrypto/dsa/dsa_ossl.c
index b3d78e524cf..7e0e3b006ef 100644
--- a/lib/libcrypto/dsa/dsa_ossl.c
+++ b/lib/libcrypto/dsa/dsa_ossl.c
@@ -74,18 +74,12 @@ static int dsa_init(DSA *dsa);
static int dsa_finish(DSA *dsa);
static DSA_METHOD openssl_dsa_meth = {
-"OpenSSL DSA method",
-dsa_do_sign,
-dsa_sign_setup,
-dsa_do_verify,
-NULL, /* dsa_mod_exp, */
-NULL, /* dsa_bn_mod_exp, */
-dsa_init,
-dsa_finish,
-0,
-NULL,
-NULL,
-NULL
+ .name = "OpenSSL DSA method",
+ .dsa_do_sign = dsa_do_sign,
+ .dsa_sign_setup = dsa_sign_setup,
+ .dsa_do_verify = dsa_do_verify,
+ .init = dsa_init,
+ .finish = dsa_finish
};
/* These macro wrappers replace attempts to use the dsa_mod_exp() and