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