Add missing const keyword in cl_update_hash()

pull/79/merge
Anthony Chan 11 years ago committed by Micah Snyder
parent a5c30b1047
commit f50f7f306e
  1. 2
      libclamav/clamav.h
  2. 2
      libclamav/crypto.c

@ -787,7 +787,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 */

@ -1150,7 +1150,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)
{
int winres=0;

Loading…
Cancel
Save