diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-06-30 15:22:46 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-06-30 15:22:46 -0700 |
commit | 49d071158d2d3c8b35906f8bc01ac038cc8fc8f6 (patch) | |
tree | 5e92993c0951acb1ebe674825bbfb29c5f850f1e /chksums/sha256.c | |
parent | 259e4a0c51bc7d2e2d043e9af05b388b71c510fd (diff) | |
download | txr-49d071158d2d3c8b35906f8bc01ac038cc8fc8f6.tar.gz txr-49d071158d2d3c8b35906f8bc01ac038cc8fc8f6.tar.bz2 txr-49d071158d2d3c8b35906f8bc01ac038cc8fc8f6.zip |
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.
Diffstat (limited to 'chksums/sha256.c')
-rw-r--r-- | chksums/sha256.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chksums/sha256.c b/chksums/sha256.c index 7c0cff73..a7d0e9d4 100644 --- a/chksums/sha256.c +++ b/chksums/sha256.c @@ -263,11 +263,10 @@ void SHA256_init(SHA256_t *ctx) } /* Add bytes into the hash */ -void SHA256_update(SHA256_t *ctx, const void *in, size_t len) +void SHA256_update(SHA256_t *ctx, const unsigned char *src, size_t len) { u64_t bitlen; u32_t r; - const unsigned char *src = in; /* Number of bytes left in the buffer from previous updates */ r = (ctx->count >> 3) & 0x3f; |