Ignore:
Timestamp:
Mar 7, 2022, 7:11:41 PM (3 years ago)
Author:
katerina
Message:

Fix for ticket #463 (gcc 11.2 compiler warnings).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_checksum.c

    r450 r575  
    408408}
    409409
    410 void SHA256_Final(sha2_byte digest[], SHA256_CTX* context)
     410void SHA256_Final(sha2_byte digest[SHA256_DIGEST_LENGTH], SHA256_CTX* context)
    411411{
    412412  sha2_word32     *d = (sha2_word32*)digest;
     
    482482
    483483/* If buffer is of length KEYBUF_SIZE, the digest will fit */
    484 char *SHA256_End(SHA256_CTX* context, char buffer[])
     484char *SHA256_End(SHA256_CTX* context, char buffer[KEYBUF_SIZE])
    485485{
    486486  sha2_byte       digest[SHA256_DIGEST_LENGTH];
Note: See TracChangeset for help on using the changeset viewer.