1 1.1 christos /* 2 1.1 christos * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved. 3 1.1 christos * 4 1.1 christos * Licensed under the OpenSSL license (the "License"). You may not use 5 1.1 christos * this file except in compliance with the License. You can obtain a copy 6 1.1 christos * in the file LICENSE in the source distribution or at 7 1.1 christos * https://www.openssl.org/source/license.html 8 1.1 christos */ 9 1.1 christos 10 1.1 christos #ifndef HEADER_COMP_H 11 1.1 christos # define HEADER_COMP_H 12 1.1 christos 13 1.1 christos # include <openssl/opensslconf.h> 14 1.1 christos 15 1.1 christos # ifndef OPENSSL_NO_COMP 16 1.1 christos # include <openssl/crypto.h> 17 1.1 christos # include <openssl/comperr.h> 18 1.1 christos # ifdef __cplusplus 19 1.1 christos extern "C" { 20 1.1 christos # endif 21 1.1 christos 22 1.1 christos 23 1.1 christos 24 1.1 christos COMP_CTX *COMP_CTX_new(COMP_METHOD *meth); 25 1.1 christos const COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx); 26 1.1 christos int COMP_CTX_get_type(const COMP_CTX* comp); 27 1.1 christos int COMP_get_type(const COMP_METHOD *meth); 28 1.1 christos const char *COMP_get_name(const COMP_METHOD *meth); 29 1.1 christos void COMP_CTX_free(COMP_CTX *ctx); 30 1.1 christos 31 1.1 christos int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, 32 1.1 christos unsigned char *in, int ilen); 33 1.1 christos int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, 34 1.1 christos unsigned char *in, int ilen); 35 1.1 christos 36 1.1 christos COMP_METHOD *COMP_zlib(void); 37 1.1 christos 38 1.1 christos #if OPENSSL_API_COMPAT < 0x10100000L 39 1.1 christos #define COMP_zlib_cleanup() while(0) continue 40 1.1 christos #endif 41 1.1 christos 42 1.1 christos # ifdef HEADER_BIO_H 43 1.1 christos # ifdef ZLIB 44 1.1 christos const BIO_METHOD *BIO_f_zlib(void); 45 1.1 christos # endif 46 1.1 christos # endif 47 1.1 christos 48 1.1 christos 49 1.1 christos # ifdef __cplusplus 50 1.1 christos } 51 1.1 christos # endif 52 1.1 christos # endif 53 1.1 christos #endif 54