From 8b31cfae80706dbb8494b5e2ecadf47085601fec Mon Sep 17 00:00:00 2001 From: MGPlastic Date: Mon, 25 Mar 2024 09:23:43 +0800 Subject: [PATCH] Fix link error when link as static library with OpenSSL --- src/hex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hex.c b/src/hex.c index 68bde977..16708acd 100644 --- a/src/hex.c +++ b/src/hex.c @@ -15,7 +15,7 @@ #include #include -int OPENSSL_hexchar2int(unsigned char c) +static int OPENSSL_hexchar2int(unsigned char c) { switch (c) { case '0': @@ -55,7 +55,7 @@ int OPENSSL_hexchar2int(unsigned char c) return -1; } -unsigned char *OPENSSL_hexstr2buf(const char *str, size_t *len) +static unsigned char *OPENSSL_hexstr2buf(const char *str, size_t *len) { unsigned char *hexbuf, *q; unsigned char ch, cl;