9 #include <openssl/crypto.h>
11 typedef struct comp_method_st
13 int type; /* NID for compression library */
14 const char *name; /* A text string to identify the library */
22 typedef struct comp_ctx_st
25 unsigned long compress_in;
26 unsigned long compress_out;
27 unsigned long expand_in;
28 unsigned long expand_out;
30 CRYPTO_EX_DATA ex_data;
35 COMP_CTX *COMP_CTX_new(COMP_METHOD *meth);
36 void COMP_CTX_free(COMP_CTX *ctx);
37 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
38 unsigned char *in, int ilen);
39 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
40 unsigned char *in, int ilen);
41 COMP_METHOD *COMP_rle(void );
43 COMP_METHOD *COMP_zlib(void );
48 COMP_CTX *COMP_CTX_new();
50 int COMP_compress_block();
51 int COMP_expand_block();
52 COMP_METHOD *COMP_rle();
54 COMP_METHOD *COMP_zlib();
58 /* BEGIN ERROR CODES */
59 /* The following lines are auto generated by the script mkerr.pl. Any changes
60 * made after this point may be overwritten when the script is next run.
63 /* Error codes for the COMP functions. */