Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libclamav/clamav.h
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ unsigned char *cl_sign_file_fp(FILE *fp, EVP_PKEY *pkey, char *alg, unsigned int
EVP_PKEY *cl_get_pkey_file(char *keypath);

void *cl_hash_init(const char *alg);
int cl_update_hash(void *ctx, void *data, size_t sz);
int cl_update_hash(void *ctx, const void *data, size_t sz);
int cl_finish_hash(void *ctx, void *buf);
void cl_hash_destroy(void *ctx);
/* End of crypto/hashing functions */
Expand Down
2 changes: 1 addition & 1 deletion libclamav/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ void *cl_hash_init(const char *alg)
return (void *)ctx;
}

int cl_update_hash(void *ctx, void *data, size_t sz)
int cl_update_hash(void *ctx, const void *data, size_t sz)
{
if (!(ctx) || !(data))
return -1;
Expand Down