Merge pull request #1649 from fnMrRice/master

Fix link error when link as static library with OpenSSL
This commit is contained in:
Zhi Guan
2024-04-17 20:43:00 +08:00
committed by GitHub

View File

@@ -15,7 +15,7 @@
#include <stdint.h> #include <stdint.h>
#include <gmssl/error.h> #include <gmssl/error.h>
int OPENSSL_hexchar2int(unsigned char c) static int OPENSSL_hexchar2int(unsigned char c)
{ {
switch (c) { switch (c) {
case '0': case '0':
@@ -55,7 +55,7 @@ int OPENSSL_hexchar2int(unsigned char c)
return -1; 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 *hexbuf, *q;
unsigned char ch, cl; unsigned char ch, cl;