]>
Commit | Line | Data |
---|---|---|
21dcbebc | 1 | /* |
6738bf14 | 2 | * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved. |
9a555706 | 3 | * |
48f4ad77 | 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
21dcbebc RS |
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 |
19 | extern "C" { | |
114de5b5 MC |
20 | # endif |
21 | ||
dfeab068 | 22 | |
dfeab068 RE |
23 | |
24 | COMP_CTX *COMP_CTX_new(COMP_METHOD *meth); | |
9a555706 RS |
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); | |
dfeab068 | 29 | void COMP_CTX_free(COMP_CTX *ctx); |
9a555706 | 30 | |
dfeab068 | 31 | int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, |
0f113f3e | 32 | unsigned char *in, int ilen); |
dfeab068 | 33 | int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, |
0f113f3e | 34 | unsigned char *in, int ilen); |
9a555706 | 35 | |
0f113f3e | 36 | COMP_METHOD *COMP_zlib(void); |
02a247e0 | 37 | |
fcd2d5a6 | 38 | #if !OPENSSL_API_1_1_0 |
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 | 44 | const 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 |