codekingpro/portable-devtools
115k
1/*2 * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.3 *4 * Licensed under the Apache License 2.0 (the "License"). You may not use5 * this file except in compliance with the License. You can obtain a copy6 * in the file LICENSE in the source distribution or at7 * https://www.openssl.org/source/license.html8 */9 10#ifndef OPENSSL_COMP_H11# define OPENSSL_COMP_H12# pragma once13 14# include <openssl/macros.h>15# ifndef OPENSSL_NO_DEPRECATED_3_016# define HEADER_COMP_H17# endif18 19# include <openssl/opensslconf.h>20 21# ifndef OPENSSL_NO_COMP22# include <openssl/crypto.h>23# include <openssl/comperr.h>24# ifdef __cplusplus25extern "C" {26# endif27 28 29 30COMP_CTX *COMP_CTX_new(COMP_METHOD *meth);31const COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx);32int COMP_CTX_get_type(const COMP_CTX* comp);33int COMP_get_type(const COMP_METHOD *meth);34const char *COMP_get_name(const COMP_METHOD *meth);35void COMP_CTX_free(COMP_CTX *ctx);36 37int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,38 unsigned char *in, int ilen);39int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,40 unsigned char *in, int ilen);41 42COMP_METHOD *COMP_zlib(void);43 44#ifndef OPENSSL_NO_DEPRECATED_1_1_045# define COMP_zlib_cleanup() while(0) continue46#endif47 48# ifdef OPENSSL_BIO_H49# ifdef ZLIB50const BIO_METHOD *BIO_f_zlib(void);51# endif52# endif53 54 55# ifdef __cplusplus56}57# endif58# endif59#endif60 