diff options
| author | 2014-04-26 13:04:24 +0000 | |
|---|---|---|
| committer | 2014-04-26 13:04:24 +0000 | |
| commit | bf35d475e3562dc0992b3243328c9b2755481a1d (patch) | |
| tree | a7d9d609425609e0a34de4d0f73d8ef76b5f9f3e /lib/libssl/src/crypto/comp/comp.h | |
| parent | Kill the link to /usr/bin/page. OK henning@ jmc@ miod@ schwarze@ (diff) | |
| download | wireguard-openbsd-bf35d475e3562dc0992b3243328c9b2755481a1d.tar.xz wireguard-openbsd-bf35d475e3562dc0992b3243328c9b2755481a1d.zip | |
KNF.
Diffstat (limited to 'lib/libssl/src/crypto/comp/comp.h')
| -rw-r--r-- | lib/libssl/src/crypto/comp/comp.h | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/lib/libssl/src/crypto/comp/comp.h b/lib/libssl/src/crypto/comp/comp.h index 4b405c7d49e..0f7d2da3362 100644 --- a/lib/libssl/src/crypto/comp/comp.h +++ b/lib/libssl/src/crypto/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); |
