From 49d071158d2d3c8b35906f8bc01ac038cc8fc8f6 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 30 Jun 2019 15:22:46 -0700 Subject: sha256: C++ fix: void *conversion. * chksums/sha256.c (SHA256_update): Change in parameter to const unsigned char *, avoiding the need for a local variable in that type. * chksums/sha256.h (SHA256_update): Declaration updated. --- chksums/sha256.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chksums/sha256.h') diff --git a/chksums/sha256.h b/chksums/sha256.h index 3cd57a4e..bdfcaa44 100644 --- a/chksums/sha256.h +++ b/chksums/sha256.h @@ -36,5 +36,5 @@ typedef struct SHA256 { } SHA256_t; void SHA256_init(SHA256_t *); -void SHA256_update(SHA256_t *, const void *, size_t); +void SHA256_update(SHA256_t *, const unsigned char *, size_t); void SHA256_final(SHA256_t *, unsigned char *); -- cgit v1.2.3