diff options
Diffstat (limited to 'src/lib/libcrypto/comp/comp.h')
| -rw-r--r-- | src/lib/libcrypto/comp/comp.h | 37 |
1 files changed, 8 insertions, 29 deletions
diff --git a/src/lib/libcrypto/comp/comp.h b/src/lib/libcrypto/comp/comp.h index 4b405c7d49..ab48b78ae9 100644 --- a/src/lib/libcrypto/comp/comp.h +++ b/src/lib/libcrypto/comp/comp.h | |||
| @@ -8,26 +8,19 @@ | |||
| 8 | extern "C" { | 8 | extern "C" { |
| 9 | #endif | 9 | #endif |
| 10 | 10 | ||
| 11 | typedef struct comp_ctx_st COMP_CTX; | ||
| 12 | |||
| 13 | typedef struct comp_method_st | 11 | typedef struct comp_method_st |
| 14 | { | 12 | { |
| 15 | int type; /* NID for compression library */ | 13 | int type; /* NID for compression library */ |
| 16 | const char *name; /* A text string to identify the library */ | 14 | const char *name; /* A text string to identify the library */ |
| 17 | int (*init)(COMP_CTX *ctx); | 15 | int (*init)(); |
| 18 | void (*finish)(COMP_CTX *ctx); | 16 | void (*finish)(); |
| 19 | int (*compress)(COMP_CTX *ctx, | 17 | int (*compress)(); |
| 20 | unsigned char *out, unsigned int olen, | 18 | int (*expand)(); |
| 21 | unsigned char *in, unsigned int ilen); | 19 | long (*ctrl)(); |
| 22 | int (*expand)(COMP_CTX *ctx, | 20 | long (*callback_ctrl)(); |
| 23 | unsigned char *out, unsigned int olen, | ||
| 24 | unsigned char *in, unsigned int ilen); | ||
| 25 | /* The following two do NOTHING, but are kept for backward compatibility */ | ||
| 26 | long (*ctrl)(void); | ||
| 27 | long (*callback_ctrl)(void); | ||
| 28 | } COMP_METHOD; | 21 | } COMP_METHOD; |
| 29 | 22 | ||
| 30 | struct comp_ctx_st | 23 | typedef struct comp_ctx_st |
| 31 | { | 24 | { |
| 32 | COMP_METHOD *meth; | 25 | COMP_METHOD *meth; |
| 33 | unsigned long compress_in; | 26 | unsigned long compress_in; |
| @@ -36,7 +29,7 @@ struct comp_ctx_st | |||
| 36 | unsigned long expand_out; | 29 | unsigned long expand_out; |
| 37 | 30 | ||
| 38 | CRYPTO_EX_DATA ex_data; | 31 | CRYPTO_EX_DATA ex_data; |
| 39 | }; | 32 | } COMP_CTX; |
| 40 | 33 | ||
| 41 | 34 | ||
| 42 | COMP_CTX *COMP_CTX_new(COMP_METHOD *meth); | 35 | COMP_CTX *COMP_CTX_new(COMP_METHOD *meth); |
| @@ -47,13 +40,6 @@ int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, | |||
| 47 | unsigned char *in, int ilen); | 40 | unsigned char *in, int ilen); |
| 48 | COMP_METHOD *COMP_rle(void ); | 41 | COMP_METHOD *COMP_rle(void ); |
| 49 | COMP_METHOD *COMP_zlib(void ); | 42 | COMP_METHOD *COMP_zlib(void ); |
| 50 | void COMP_zlib_cleanup(void); | ||
| 51 | |||
| 52 | #ifdef HEADER_BIO_H | ||
| 53 | #ifdef ZLIB | ||
| 54 | BIO_METHOD *BIO_f_zlib(void); | ||
| 55 | #endif | ||
| 56 | #endif | ||
| 57 | 43 | ||
| 58 | /* BEGIN ERROR CODES */ | 44 | /* BEGIN ERROR CODES */ |
| 59 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 45 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
| @@ -64,15 +50,8 @@ void ERR_load_COMP_strings(void); | |||
| 64 | /* Error codes for the COMP functions. */ | 50 | /* Error codes for the COMP functions. */ |
| 65 | 51 | ||
| 66 | /* Function codes. */ | 52 | /* Function codes. */ |
| 67 | #define COMP_F_BIO_ZLIB_FLUSH 99 | ||
| 68 | #define COMP_F_BIO_ZLIB_NEW 100 | ||
| 69 | #define COMP_F_BIO_ZLIB_READ 101 | ||
| 70 | #define COMP_F_BIO_ZLIB_WRITE 102 | ||
| 71 | 53 | ||
| 72 | /* Reason codes. */ | 54 | /* Reason codes. */ |
| 73 | #define COMP_R_ZLIB_DEFLATE_ERROR 99 | ||
| 74 | #define COMP_R_ZLIB_INFLATE_ERROR 100 | ||
| 75 | #define COMP_R_ZLIB_NOT_SUPPORTED 101 | ||
| 76 | 55 | ||
| 77 | #ifdef __cplusplus | 56 | #ifdef __cplusplus |
| 78 | } | 57 | } |
