]>
git.ipfire.org Git - thirdparty/openssl.git/blob - include/openssl/comp.h
2 * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
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
11 # define HEADER_COMP_H
13 # include <openssl/opensslconf.h>
15 # ifndef OPENSSL_NO_COMP
16 # include <openssl/crypto.h>
23 COMP_CTX
*COMP_CTX_new(COMP_METHOD
*meth
);
24 const COMP_METHOD
*COMP_CTX_get_method(const COMP_CTX
*ctx
);
25 int COMP_CTX_get_type(const COMP_CTX
* comp
);
26 int COMP_get_type(const COMP_METHOD
*meth
);
27 const char *COMP_get_name(const COMP_METHOD
*meth
);
28 void COMP_CTX_free(COMP_CTX
*ctx
);
30 int COMP_compress_block(COMP_CTX
*ctx
, unsigned char *out
, int olen
,
31 unsigned char *in
, int ilen
);
32 int COMP_expand_block(COMP_CTX
*ctx
, unsigned char *out
, int olen
,
33 unsigned char *in
, int ilen
);
35 COMP_METHOD
*COMP_zlib(void);
37 #if OPENSSL_API_COMPAT < 0x10100000L
38 #define COMP_zlib_cleanup() while(0) continue
43 const BIO_METHOD
*BIO_f_zlib(void);
47 /* BEGIN ERROR CODES */
49 * The following lines are auto generated by the script mkerr.pl. Any changes
50 * made after this point may be overwritten when the script is next run.
52 void ERR_load_COMP_strings(void);
54 /* Error codes for the COMP functions. */
57 # define COMP_F_BIO_ZLIB_FLUSH 99
58 # define COMP_F_BIO_ZLIB_NEW 100
59 # define COMP_F_BIO_ZLIB_READ 101
60 # define COMP_F_BIO_ZLIB_WRITE 102
63 # define COMP_R_ZLIB_DEFLATE_ERROR 99
64 # define COMP_R_ZLIB_INFLATE_ERROR 100
65 # define COMP_R_ZLIB_NOT_SUPPORTED 101