Blame crypto/comp/comp_local.h

Packit c4476c
/*
Packit c4476c
 * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
 *
Packit c4476c
 * Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
 * this file except in compliance with the License.  You can obtain a copy
Packit c4476c
 * in the file LICENSE in the source distribution or at
Packit c4476c
 * https://www.openssl.org/source/license.html
Packit c4476c
 */
Packit c4476c
Packit c4476c
struct comp_method_st {
Packit c4476c
    int type;                   /* NID for compression library */
Packit c4476c
    const char *name;           /* A text string to identify the library */
Packit c4476c
    int (*init) (COMP_CTX *ctx);
Packit c4476c
    void (*finish) (COMP_CTX *ctx);
Packit c4476c
    int (*compress) (COMP_CTX *ctx,
Packit c4476c
                     unsigned char *out, unsigned int olen,
Packit c4476c
                     unsigned char *in, unsigned int ilen);
Packit c4476c
    int (*expand) (COMP_CTX *ctx,
Packit c4476c
                   unsigned char *out, unsigned int olen,
Packit c4476c
                   unsigned char *in, unsigned int ilen);
Packit c4476c
};
Packit c4476c
Packit c4476c
struct comp_ctx_st {
Packit c4476c
    struct comp_method_st *meth;
Packit c4476c
    unsigned long compress_in;
Packit c4476c
    unsigned long compress_out;
Packit c4476c
    unsigned long expand_in;
Packit c4476c
    unsigned long expand_out;
Packit c4476c
    void* data;
Packit c4476c
};