fix up symbols visibility

This commit is contained in:
Nikita Smith
2025-09-05 15:19:31 -07:00
committed by Ryan Fleury
parent 56c43ad614
commit f2ee135439
9 changed files with 33 additions and 12 deletions
+3 -3
View File
@@ -204,7 +204,7 @@ static const void *body(MD5_CTX *ctx, const void *data, unsigned long size)
return ptr;
}
void MD5_Init(MD5_CTX *ctx)
MD5_API void MD5_Init(MD5_CTX *ctx)
{
ctx->a = 0x67452301;
ctx->b = 0xefcdab89;
@@ -215,7 +215,7 @@ void MD5_Init(MD5_CTX *ctx)
ctx->hi = 0;
}
void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
MD5_API void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
{
MD5_u32plus saved_lo;
unsigned long used, available;
@@ -255,7 +255,7 @@ void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
(dst)[2] = (unsigned char)((src) >> 16); \
(dst)[3] = (unsigned char)((src) >> 24);
void MD5_Final(unsigned char *result, MD5_CTX *ctx)
MD5_API void MD5_Final(unsigned char *result, MD5_CTX *ctx)
{
unsigned long used, available;
+7 -3
View File
@@ -23,6 +23,10 @@
* See md5.c for more information.
*/
#ifndef MD5_API
# define MD5_API
#endif
#ifdef HAVE_OPENSSL
#include <openssl/md5.h>
#elif !defined(_MD5_H)
@@ -38,8 +42,8 @@ typedef struct {
MD5_u32plus block[16];
} MD5_CTX;
extern void MD5_Init(MD5_CTX *ctx);
extern void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size);
extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
MD5_API void MD5_Init(MD5_CTX *ctx);
MD5_API void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size);
MD5_API void MD5_Final(unsigned char *result, MD5_CTX *ctx);
#endif