summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/comp/c_rle.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/comp/c_rle.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/comp/c_rle.c')
-rw-r--r--lib/libcrypto/comp/c_rle.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libcrypto/comp/c_rle.c b/lib/libcrypto/comp/c_rle.c
index 7a5db298c5e..48e48cbb7aa 100644
--- a/lib/libcrypto/comp/c_rle.c
+++ b/lib/libcrypto/comp/c_rle.c
@@ -10,14 +10,10 @@ static int rle_expand_block(COMP_CTX *ctx, unsigned char *out,
unsigned int olen, unsigned char *in, unsigned int ilen);
static COMP_METHOD rle_method = {
- NID_rle_compression,
- LN_rle_compression,
- NULL,
- NULL,
- rle_compress_block,
- rle_expand_block,
- NULL,
- NULL,
+ .type = NID_rle_compression,
+ .name = LN_rle_compression,
+ .compress = rle_compress_block,
+ .expand = rle_expand_block
};
COMP_METHOD *