Update COMP_METHOD
[openssl.git] / crypto / comp / comp_local.h
index acf113e31cd0865174bd5bfc399a7d744d62ed96..d8be9271a0cbc1371ae602c93645c99b99a77c11 100644 (file)
@@ -12,12 +12,12 @@ struct comp_method_st {
     const char *name;           /* A text string to identify the library */
     int (*init) (COMP_CTX *ctx);
     void (*finish) (COMP_CTX *ctx);
-    int (*compress) (COMP_CTX *ctx,
-                     unsigned char *out, unsigned int olen,
-                     unsigned char *in, unsigned int ilen);
-    int (*expand) (COMP_CTX *ctx,
-                   unsigned char *out, unsigned int olen,
-                   unsigned char *in, unsigned int ilen);
+    ossl_ssize_t (*compress) (COMP_CTX *ctx,
+                             unsigned char *out, size_t olen,
+                             unsigned char *in, size_t ilen);
+    ossl_ssize_t (*expand) (COMP_CTX *ctx,
+                            unsigned char *out, size_t olen,
+                            unsigned char *in, size_t ilen);
 };
 
 struct comp_ctx_st {