Browse code

Add missing const keyword in cl_update_hash()

Anthony Chan authored on 2014/07/29 06:32:27
Showing 2 changed files
... ...
@@ -787,7 +787,7 @@ unsigned char *cl_sign_file_fp(FILE *fp, EVP_PKEY *pkey, char *alg, unsigned int
787 787
 EVP_PKEY *cl_get_pkey_file(char *keypath);
788 788
 
789 789
 void *cl_hash_init(const char *alg);
790
-int cl_update_hash(void *ctx, void *data, size_t sz);
790
+int cl_update_hash(void *ctx, const void *data, size_t sz);
791 791
 int cl_finish_hash(void *ctx, void *buf);
792 792
 void cl_hash_destroy(void *ctx);
793 793
 /* End of crypto/hashing functions */
... ...
@@ -1150,7 +1150,7 @@ void *cl_hash_init(const char *alg)
1150 1150
     return (void *)ctx;
1151 1151
 }
1152 1152
 
1153
-int cl_update_hash(void *ctx, void *data, size_t sz)
1153
+int cl_update_hash(void *ctx, const void *data, size_t sz)
1154 1154
 {
1155 1155
     int winres=0;
1156 1156