summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/comp/comp.h
diff options
context:
space:
mode:
authormarkus <>2002-09-05 12:51:50 +0000
committermarkus <>2002-09-05 12:51:50 +0000
commit15b5d84f9da2ce4bfae8580e56e34a859f74ad71 (patch)
treebf939e82d7fd73cc8a01cf6959002209972091bc /src/lib/libcrypto/comp/comp.h
parent027351f729b9e837200dae6e1520cda6577ab930 (diff)
downloadopenbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.tar.gz
openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.tar.bz2
openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.zip
import openssl-0.9.7-beta1
Diffstat (limited to 'src/lib/libcrypto/comp/comp.h')
-rw-r--r--src/lib/libcrypto/comp/comp.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libcrypto/comp/comp.h b/src/lib/libcrypto/comp/comp.h
index 93bd9c34c8..ab48b78ae9 100644
--- a/src/lib/libcrypto/comp/comp.h
+++ b/src/lib/libcrypto/comp/comp.h
@@ -2,12 +2,12 @@
2#ifndef HEADER_COMP_H 2#ifndef HEADER_COMP_H
3#define HEADER_COMP_H 3#define HEADER_COMP_H
4 4
5#include <openssl/crypto.h>
6
5#ifdef __cplusplus 7#ifdef __cplusplus
6extern "C" { 8extern "C" {
7#endif 9#endif
8 10
9#include <openssl/crypto.h>
10
11typedef struct comp_method_st 11typedef struct comp_method_st
12 { 12 {
13 int type; /* NID for compression library */ 13 int type; /* NID for compression library */
@@ -17,6 +17,7 @@ typedef struct comp_method_st
17 int (*compress)(); 17 int (*compress)();
18 int (*expand)(); 18 int (*expand)();
19 long (*ctrl)(); 19 long (*ctrl)();
20 long (*callback_ctrl)();
20 } COMP_METHOD; 21 } COMP_METHOD;
21 22
22typedef struct comp_ctx_st 23typedef struct comp_ctx_st
@@ -38,14 +39,13 @@ int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
38int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, 39int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
39 unsigned char *in, int ilen); 40 unsigned char *in, int ilen);
40COMP_METHOD *COMP_rle(void ); 41COMP_METHOD *COMP_rle(void );
41#ifdef ZLIB
42COMP_METHOD *COMP_zlib(void ); 42COMP_METHOD *COMP_zlib(void );
43#endif
44 43
45/* BEGIN ERROR CODES */ 44/* BEGIN ERROR CODES */
46/* The following lines are auto generated by the script mkerr.pl. Any changes 45/* The following lines are auto generated by the script mkerr.pl. Any changes
47 * made after this point may be overwritten when the script is next run. 46 * made after this point may be overwritten when the script is next run.
48 */ 47 */
48void ERR_load_COMP_strings(void);
49 49
50/* Error codes for the COMP functions. */ 50/* Error codes for the COMP functions. */
51 51
@@ -57,4 +57,3 @@ COMP_METHOD *COMP_zlib(void );
57} 57}
58#endif 58#endif
59#endif 59#endif
60