summaryrefslogtreecommitdiffstats
path: root/crypto/comp/comp_local.h
diff options
context:
space:
mode:
authorTodd Short <tshort@akamai.com>2022-08-29 14:58:57 -0400
committerTodd Short <todd.short@me.com>2022-10-18 09:30:22 -0400
commit7e3cacac943d298348d97c8f7f980ca0916378c5 (patch)
tree23add0038a61ce3ee2a0c6ec6f5c04c96a74f948 /crypto/comp/comp_local.h
parentb540aae97d6b80f9040874b9c56259a85ba46f36 (diff)
Update COMP_METHOD
size_t-ify the COMP_METHOD structure and functions. Get rid of the non-functional COMP_METHODS and return NULL instead. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18186)
Diffstat (limited to 'crypto/comp/comp_local.h')
-rw-r--r--crypto/comp/comp_local.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/comp/comp_local.h b/crypto/comp/comp_local.h
index acf113e31c..d8be9271a0 100644
--- a/crypto/comp/comp_local.h
+++ b/crypto/comp/comp_local.h
@@ -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 {