| COMP_CTX *COMP_CTX_new(COMP_METHOD *meth) |
| if ((ret=(COMP_CTX *)Malloc(sizeof(COMP_CTX))) == NULL) |
| memset(ret,0,sizeof(COMP_CTX)); |
| if ((ret->meth->init != NULL) && !ret->meth->init(ret)) |
| CRYPTO_new_ex_data(rsa_meth,(char *)ret,&ret->ex_data); |
| void COMP_CTX_free(COMP_CTX *ctx) |
| /* CRYPTO_free_ex_data(rsa_meth,(char *)ctx,&ctx->ex_data); */ |
| if (ctx->meth->finish != NULL) |
| int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, |
| unsigned char *in, int ilen) |
| if (ctx->meth->compress == NULL) |
| ret=ctx->meth->compress(ctx,out,olen,in,ilen); |
| int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, |
| unsigned char *in, int ilen) |
| if (ctx->meth->expand == NULL) |
| ret=ctx->meth->expand(ctx,out,olen,in,ilen); |