You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

comp.h 1.4 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 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. #ifndef OPENSSL_COMP_H
  10. #define OPENSSL_COMP_H
  11. #pragma once
  12. #include <openssl/macros.h>
  13. #ifndef OPENSSL_NO_DEPRECATED_3_0
  14. #define HEADER_COMP_H
  15. #endif
  16. #include <openssl/opensslconf.h>
  17. #ifndef OPENSSL_NO_COMP
  18. #include <openssl/crypto.h>
  19. #include <openssl/comperr.h>
  20. #ifdef __cplusplus
  21. extern "C"
  22. {
  23. #endif
  24. COMP_CTX* COMP_CTX_new(COMP_METHOD* meth);
  25. const COMP_METHOD* COMP_CTX_get_method(const COMP_CTX* ctx);
  26. int COMP_CTX_get_type(const COMP_CTX* comp);
  27. int COMP_get_type(const COMP_METHOD* meth);
  28. const char* COMP_get_name(const COMP_METHOD* meth);
  29. void COMP_CTX_free(COMP_CTX* ctx);
  30. int COMP_compress_block(COMP_CTX* ctx, unsigned char* out, int olen, unsigned char* in, int ilen);
  31. int COMP_expand_block(COMP_CTX* ctx, unsigned char* out, int olen, unsigned char* in, int ilen);
  32. COMP_METHOD* COMP_zlib(void);
  33. #ifndef OPENSSL_NO_DEPRECATED_1_1_0
  34. #define COMP_zlib_cleanup() \
  35. while (0) \
  36. continue
  37. #endif
  38. #ifdef OPENSSL_BIO_H
  39. #ifdef ZLIB
  40. const BIO_METHOD* BIO_f_zlib(void);
  41. #endif
  42. #endif
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif
  47. #endif