aboutsummaryrefslogtreecommitdiff
path: root/src/toast.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-06-16 22:43:56 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-06-16 22:43:56 +0200
commit10bed2d13e6d670f4ed0f18e564f1e6790f2d812 (patch)
tree1f702032b39c6c854d6d8977b8d04d34e6e18f85 /src/toast.c
parente249a716e8c2d53ea843cf66ffcee75f184c0b6d (diff)
downloadOFQT-10bed2d13e6d670f4ed0f18e564f1e6790f2d812.tar.gz
OFQT-10bed2d13e6d670f4ed0f18e564f1e6790f2d812.zip
Change MD5 function signatures, make libtvn static, not object
this solves a problem on x86_64 Windows where the MD5 functions were included within ntdll. STATIC libraries have better defined behavior than static ones, and we do not compile the same thing multiple times since we use it as a libary.
Diffstat (limited to 'src/toast.c')
-rw-r--r--src/toast.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/toast.c b/src/toast.c
index 34d28b9..475847c 100644
--- a/src/toast.c
+++ b/src/toast.c
@@ -589,7 +589,7 @@ static int fileHash(char* path, char* hash)
fseek(fd, 0L, SEEK_SET);
MD5_CTX context;
- MD5Init(&context);
+ MD5_Init(&context);
if (fd_size)
{
@@ -602,13 +602,13 @@ static int fileHash(char* path, char* hash)
fread(buf, sizeof(char), fd_size, fd);
- MD5Update(&context, buf, fd_size);
+ MD5_Update(&context, buf, fd_size);
free(buf);
}
fclose(fd);
unsigned char digest[16];
- MD5Final(digest, &context);
+ MD5_Final(digest, &context);
char md5string[33];
for(int i = 0; i < 16; ++i)