4 #include <openssl/objects.h>
5 #include <openssl/comp.h>
7 static int rle_compress_block(COMP_CTX *ctx, unsigned char *out,
8 unsigned int olen, unsigned char *in, unsigned int ilen);
9 static int rle_expand_block(COMP_CTX *ctx, unsigned char *out,
10 unsigned int olen, unsigned char *in, unsigned int ilen);
12 static COMP_METHOD rle_method={
22 COMP_METHOD *COMP_rle(void)
27 static int rle_compress_block(COMP_CTX *ctx, unsigned char *out,
28 unsigned int olen, unsigned char *in, unsigned int ilen)
34 /* ZZZZZZZZZZZZZZZZZZZZZZ */
43 static int rle_expand_block(COMP_CTX *ctx, unsigned char *out,
44 unsigned int olen, unsigned char *in, unsigned int ilen)
50 /* ZZZZZZZZZZZZZZZZZZZZZZ */
57 memcpy(out,in,ilen-1);