diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2022-03-11 11:23:47 -0500 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2022-03-11 11:23:47 -0500 |
commit | 20b23cc32edd4ad8aed1699b3b5d372efeac5c67 (patch) | |
tree | 4078122f69f3e062bf32bf648ef02ced0a51adee /src | |
parent | bea73492114c95149733405205483ce56d11125a (diff) | |
download | calcurse-20b23cc32edd4ad8aed1699b3b5d372efeac5c67.tar.gz calcurse-20b23cc32edd4ad8aed1699b3b5d372efeac5c67.zip |
Fix SHA1 calculation on big-endian systems
Add the AC_C_BIGENDIAN macro to determine endianness and set
WORDS_BIGENDIAN accordingly.
Fixes GitHub issue #397.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/sha1.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -43,6 +43,7 @@ #include <stdlib.h> #include <string.h> +#include "config.h" #include "sha1.h" #define rol(val, n) (((val) << (n)) | ((val) >> (32 - (n)))) |