source: EcnlProtoTool/trunk/openssl-1.1.0e/include/openssl/comp.h@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr
File size: 2.0 KB
Line 
1/*
2 * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
3 *
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
8 */
9
10#ifndef HEADER_COMP_H
11# define HEADER_COMP_H
12
13# include <openssl/opensslconf.h>
14
15# ifndef OPENSSL_NO_COMP
16# include <openssl/crypto.h>
17# ifdef __cplusplus
18extern "C" {
19# endif
20
21
22
23COMP_CTX *COMP_CTX_new(COMP_METHOD *meth);
24const COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx);
25int COMP_CTX_get_type(const COMP_CTX* comp);
26int COMP_get_type(const COMP_METHOD *meth);
27const char *COMP_get_name(const COMP_METHOD *meth);
28void COMP_CTX_free(COMP_CTX *ctx);
29
30int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
31 unsigned char *in, int ilen);
32int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
33 unsigned char *in, int ilen);
34
35COMP_METHOD *COMP_zlib(void);
36
37#if OPENSSL_API_COMPAT < 0x10100000L
38#define COMP_zlib_cleanup() while(0) continue
39#endif
40
41# ifdef HEADER_BIO_H
42# ifdef ZLIB
43const BIO_METHOD *BIO_f_zlib(void);
44# endif
45# endif
46
47/* BEGIN ERROR CODES */
48/*
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.
51 */
52
53int ERR_load_COMP_strings(void);
54
55/* Error codes for the COMP functions. */
56
57/* Function codes. */
58# define COMP_F_BIO_ZLIB_FLUSH 99
59# define COMP_F_BIO_ZLIB_NEW 100
60# define COMP_F_BIO_ZLIB_READ 101
61# define COMP_F_BIO_ZLIB_WRITE 102
62
63/* Reason codes. */
64# define COMP_R_ZLIB_DEFLATE_ERROR 99
65# define COMP_R_ZLIB_INFLATE_ERROR 100
66# define COMP_R_ZLIB_NOT_SUPPORTED 101
67
68# ifdef __cplusplus
69}
70# endif
71# endif
72#endif
Note: See TracBrowser for help on using the repository browser.