]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/openssl/comp.h
Update copyright year
[thirdparty/openssl.git] / include / openssl / comp.h
CommitLineData
21dcbebc 1/*
6738bf14 2 * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.
9a555706 3 *
21dcbebc
RS
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
9a555706
RS
8 */
9
dfeab068 10#ifndef HEADER_COMP_H
0f113f3e 11# define HEADER_COMP_H
dfeab068 12
3c27208f 13# include <openssl/opensslconf.h>
82271cee 14
3c27208f
RS
15# ifndef OPENSSL_NO_COMP
16# include <openssl/crypto.h>
52df25cf 17# include <openssl/comperr.h>
3c27208f
RS
18# ifdef __cplusplus
19extern "C" {
114de5b5
MC
20# endif
21
dfeab068 22
dfeab068
RE
23
24COMP_CTX *COMP_CTX_new(COMP_METHOD *meth);
9a555706
RS
25const COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx);
26int COMP_CTX_get_type(const COMP_CTX* comp);
27int COMP_get_type(const COMP_METHOD *meth);
28const char *COMP_get_name(const COMP_METHOD *meth);
dfeab068 29void COMP_CTX_free(COMP_CTX *ctx);
9a555706 30
dfeab068 31int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
0f113f3e 32 unsigned char *in, int ilen);
dfeab068 33int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
0f113f3e 34 unsigned char *in, int ilen);
9a555706 35
0f113f3e 36COMP_METHOD *COMP_zlib(void);
02a247e0
MC
37
38#if OPENSSL_API_COMPAT < 0x10100000L
6457615a 39#define COMP_zlib_cleanup() while(0) continue
02a247e0 40#endif
8931b30d 41
0f113f3e
MC
42# ifdef HEADER_BIO_H
43# ifdef ZLIB
04f6b0fd 44const BIO_METHOD *BIO_f_zlib(void);
0f113f3e
MC
45# endif
46# endif
dfeab068 47
6d311938 48
0cd0a820 49# ifdef __cplusplus
dfeab068 50}
0cd0a820 51# endif
3c27208f 52# endif
dfeab068 53#endif