Lines Matching defs:ctx
34 const COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx)
36 return ctx->meth;
49 void COMP_CTX_free(COMP_CTX *ctx)
51 if (ctx == NULL)
53 if (ctx->meth->finish != NULL)
54 ctx->meth->finish(ctx);
56 OPENSSL_free(ctx);
59 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
63 if (ctx->meth->compress == NULL) {
66 ret = ctx->meth->compress(ctx, out, olen, in, ilen);
68 ctx->compress_in += ilen;
69 ctx->compress_out += ret;
74 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
79 if (ctx->meth->expand == NULL) {
82 ret = ctx->meth->expand(ctx, out, olen, in, ilen);
84 ctx->expand_in += ilen;
85 ctx->expand_out += ret;