Fix link error when link as static library with OpenSSL

This commit is contained in:
MGPlastic
2024-03-25 09:23:43 +08:00
parent b476ef7528
commit 8b31cfae80

View File

@@ -15,7 +15,7 @@
#include <stdint.h>
#include <gmssl/error.h>
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;