From 881a5b100e88cfb566ac3dadda9aa58488a5aaf9 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 26 Apr 2014 13:04:24 +0000 Subject: KNF. --- src/lib/libcrypto/comp/comp.h | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'src/lib/libcrypto/comp/comp.h') diff --git a/src/lib/libcrypto/comp/comp.h b/src/lib/libcrypto/comp/comp.h index 4b405c7d49..0f7d2da336 100644 --- a/src/lib/libcrypto/comp/comp.h +++ b/src/lib/libcrypto/comp/comp.h @@ -10,25 +10,21 @@ extern "C" { typedef struct comp_ctx_st COMP_CTX; -typedef struct comp_method_st - { +typedef struct comp_method_st { int type; /* NID for compression library */ const char *name; /* A text string to identify the library */ int (*init)(COMP_CTX *ctx); void (*finish)(COMP_CTX *ctx); - int (*compress)(COMP_CTX *ctx, - unsigned char *out, unsigned int olen, - unsigned char *in, unsigned int ilen); - int (*expand)(COMP_CTX *ctx, - unsigned char *out, unsigned int olen, - unsigned char *in, unsigned int ilen); + int (*compress)(COMP_CTX *ctx, unsigned char *out, unsigned int olen, + unsigned char *in, unsigned int ilen); + int (*expand)(COMP_CTX *ctx, unsigned char *out, unsigned int olen, + unsigned char *in, unsigned int ilen); /* The following two do NOTHING, but are kept for backward compatibility */ long (*ctrl)(void); long (*callback_ctrl)(void); - } COMP_METHOD; +} COMP_METHOD; -struct comp_ctx_st - { +struct comp_ctx_st { COMP_METHOD *meth; unsigned long compress_in; unsigned long compress_out; @@ -36,15 +32,15 @@ struct comp_ctx_st unsigned long expand_out; CRYPTO_EX_DATA ex_data; - }; +}; COMP_CTX *COMP_CTX_new(COMP_METHOD *meth); void COMP_CTX_free(COMP_CTX *ctx); int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, - unsigned char *in, int ilen); + unsigned char *in, int ilen); int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, - unsigned char *in, int ilen); + unsigned char *in, int ilen); COMP_METHOD *COMP_rle(void ); COMP_METHOD *COMP_zlib(void ); void COMP_zlib_cleanup(void); -- cgit v1.2.3-55-g6feb