2 * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
11 # define HEADER_COMP_H
13 # include <openssl/opensslconf.h>
15 # ifndef OPENSSL_NO_COMP
16 # include <openssl/crypto.h>
17 # include <openssl/comperr.h>
24 COMP_CTX *COMP_CTX_new(COMP_METHOD *meth);
25 const COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx);
26 int COMP_CTX_get_type(const COMP_CTX* comp);
27 int COMP_get_type(const COMP_METHOD *meth);
28 const char *COMP_get_name(const COMP_METHOD *meth);
29 void COMP_CTX_free(COMP_CTX *ctx);
31 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
32 unsigned char *in, int ilen);
33 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
34 unsigned char *in, int ilen);
36 COMP_METHOD *COMP_zlib(void);
38 #if OPENSSL_API_COMPAT < 0x10100000L
39 #define COMP_zlib_cleanup() while(0) continue
44 const BIO_METHOD *BIO_f_zlib(void);