3 #include <proto/amissl.h>
4 #endif /* PROTO_AMISSL_H */
9 #include <openssl/crypto.h>
15 typedef struct comp_method_st
17 int type
; /* NID for compression library */
18 const char *name
; /* A text string to identify the library */
24 long (*callback_ctrl
)();
27 typedef struct comp_ctx_st
30 unsigned long compress_in
;
31 unsigned long compress_out
;
32 unsigned long expand_in
;
33 unsigned long expand_out
;
35 CRYPTO_EX_DATA ex_data
;
39 COMP_CTX
*COMP_CTX_new(COMP_METHOD
*meth
);
40 void COMP_CTX_free(COMP_CTX
*ctx
);
41 int COMP_compress_block(COMP_CTX
*ctx
, unsigned char *out
, int olen
,
42 unsigned char *in
, int ilen
);
43 int COMP_expand_block(COMP_CTX
*ctx
, unsigned char *out
, int olen
,
44 unsigned char *in
, int ilen
);
45 COMP_METHOD
*COMP_rle(void );
46 COMP_METHOD
*COMP_zlib(void );
48 /* BEGIN ERROR CODES */
49 /* The following lines are auto generated by the script mkerr.pl. Any changes
50 * made after this point may be overwritten when the script is next run.
52 void ERR_load_COMP_strings(void);
54 /* Error codes for the COMP functions. */