Add strtonum to compat library and export it

crypto library requires strtonum now, and add it to compat library.
remove it from applications compat/ directories.
This commit is contained in:
kinichiro
2021-12-26 15:42:47 +09:00
parent 1b95c5d584
commit adde656bb7
10 changed files with 13 additions and 40 deletions

View File

@@ -13,14 +13,6 @@ else()
set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/memmem.c)
endif()
check_function_exists(strtonum HAVE_STRTONUM)
if(HAVE_STRTONUM AND CMAKE_SYSTEM_NAME MATCHES "Darwin" AND
CMAKE_HOST_SYSTEM_VERSION VERSION_GREATER_EQUAL 20)
add_definitions(-DHAVE_STRTONUM)
else()
set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/strtonum.c)
endif()
if(NOT "${OPENSSLDIR}" STREQUAL "")
add_definitions(-DDEFAULT_CA_FILE=\"${OPENSSLDIR}/cert.pem\")
else()

View File

@@ -22,7 +22,3 @@ noinst_HEADERS = http.h
if !HAVE_MEMMEM
ocspcheck_SOURCES += compat/memmem.c
endif
if !HAVE_STRTONUM
ocspcheck_SOURCES += compat/strtonum.c
endif