summaryrefslogtreecommitdiff
path: root/windows-x86/include/openssl/comp.h
diff options
context:
space:
mode:
Diffstat (limited to 'windows-x86/include/openssl/comp.h')
-rw-r--r--windows-x86/include/openssl/comp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/windows-x86/include/openssl/comp.h b/windows-x86/include/openssl/comp.h
index 406c428..df599ba 100644
--- a/windows-x86/include/openssl/comp.h
+++ b/windows-x86/include/openssl/comp.h
@@ -4,13 +4,17 @@
# include <openssl/crypto.h>
+# ifdef OPENSSL_NO_COMP
+# error COMP is disabled.
+# endif
+
#ifdef __cplusplus
extern "C" {
#endif
typedef struct comp_ctx_st COMP_CTX;
-typedef struct comp_method_st {
+struct comp_method_st {
int type; /* NID for compression library */
const char *name; /* A text string to identify the library */
int (*init) (COMP_CTX *ctx);
@@ -26,7 +30,7 @@ typedef struct comp_method_st {
*/
long (*ctrl) (void);
long (*callback_ctrl) (void);
-} COMP_METHOD;
+};
struct comp_ctx_st {
COMP_METHOD *meth;