revert between 56095 -> 55830 in arch
[AROS.git] / workbench / devs / diskimage / include / amigaos / openssl / comp.h
blob24389d99fcd4b0cbdf9ed96df4092a837eed6a90
2 #ifndef PROTO_AMISSL_H
3 #include <proto/amissl.h>
4 #endif /* PROTO_AMISSL_H */
6 #ifndef HEADER_COMP_H
7 #define HEADER_COMP_H
9 #include <openssl/crypto.h>
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
15 typedef struct comp_method_st
17 int type; /* NID for compression library */
18 const char *name; /* A text string to identify the library */
19 int (*init)();
20 void (*finish)();
21 int (*compress)();
22 int (*expand)();
23 long (*ctrl)();
24 long (*callback_ctrl)();
25 } COMP_METHOD;
27 typedef struct comp_ctx_st
29 COMP_METHOD *meth;
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;
36 } COMP_CTX;
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. */
56 /* Function codes. */
58 /* Reason codes. */
60 #ifdef __cplusplus
62 #endif
63 #endif