diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-04-26 13:04:25 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-04-26 13:04:25 +0000 |
commit | 954cbd72239d7e564a6c124c8ca5179b0bd9538d (patch) | |
tree | 2d6c1f4ac39d805291112250a1ff7c72eebc2588 /lib/libcrypto/comp/comp.h | |
parent | 72aae36028988bec22ad3e70ee8a370b15262214 (diff) |
KNF.
Diffstat (limited to 'lib/libcrypto/comp/comp.h')
-rw-r--r-- | lib/libcrypto/comp/comp.h | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/lib/libcrypto/comp/comp.h b/lib/libcrypto/comp/comp.h index 4b405c7d49e..0f7d2da3362 100644 --- a/lib/libcrypto/comp/comp.h +++ b/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); |