From 6321da633d7aa8c5f5ad95703c0b479e0894f129 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 12 Dec 2023 09:07:05 -0800 Subject: Change one prototype --- src/sha512.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sha512.cc b/src/sha512.cc index 4d13a002..f7ef5e2d 100644 --- a/src/sha512.cc +++ b/src/sha512.cc @@ -1,5 +1,3 @@ -#define uint8_t unsigned char // <-- added by John Wiegley for compilation - /* * FILE: sha2.c * AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/ @@ -61,7 +59,7 @@ typedef struct _SHA512_CTX { void SHA512_Init(SHA512_CTX*); void SHA512_Update(SHA512_CTX*, void*, size_t); -void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); +void SHA512_Final(unsigned char[SHA512_DIGEST_LENGTH], SHA512_CTX*); unsigned char *SHA512(void *data, unsigned int data_len, unsigned char *digest); -- cgit v1.2.3