diff options
author | Brent Cook <busterb@gmail.com> | 2020-10-18 20:47:10 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2020-10-19 09:09:36 -0500 |
commit | 6359d9404d9d844f20d4478befda258a7ba3cdde (patch) | |
tree | 3d9dab2b2c489b3e8c3d1b08e03639758f5e8e77 | |
parent | 01c146e3a5b8aa8594629af108df9c388fcdc951 (diff) | |
download | portable-6359d9404d9d844f20d4478befda258a7ba3cdde.tar.gz portable-6359d9404d9d844f20d4478befda258a7ba3cdde.tar.bz2 portable-6359d9404d9d844f20d4478befda258a7ba3cdde.zip |
include strtonum for ocspcheck
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | apps/ocspcheck/CMakeLists.txt | 7 | ||||
-rw-r--r-- | apps/ocspcheck/Makefile.am | 4 | ||||
-rwxr-xr-x | update.sh | 1 |
4 files changed, 13 insertions, 0 deletions
@@ -141,6 +141,7 @@ include/openssl/*.h | |||
141 | /apps/ocspcheck/ocspcheck* | 141 | /apps/ocspcheck/ocspcheck* |
142 | /apps/ocspcheck/compat/memmem.c | 142 | /apps/ocspcheck/compat/memmem.c |
143 | /apps/ocspcheck/compat/inet_ntop.c | 143 | /apps/ocspcheck/compat/inet_ntop.c |
144 | /apps/ocspcheck/compat/strtonum.c | ||
144 | 145 | ||
145 | /apps/nc/*.h | 146 | /apps/nc/*.h |
146 | /apps/nc/*.c | 147 | /apps/nc/*.c |
diff --git a/apps/ocspcheck/CMakeLists.txt b/apps/ocspcheck/CMakeLists.txt index 3c80458..b960a81 100644 --- a/apps/ocspcheck/CMakeLists.txt +++ b/apps/ocspcheck/CMakeLists.txt | |||
@@ -13,6 +13,13 @@ else() | |||
13 | set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/memmem.c) | 13 | set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/memmem.c) |
14 | endif() | 14 | endif() |
15 | 15 | ||
16 | check_function_exists(strtonum HAVE_STRTONUM) | ||
17 | if(HAVE_STRTONUM) | ||
18 | add_definitions(-DHAVE_STRTONUM) | ||
19 | else() | ||
20 | set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/strtonum.c) | ||
21 | endif() | ||
22 | |||
16 | if(NOT "${OPENSSLDIR}" STREQUAL "") | 23 | if(NOT "${OPENSSLDIR}" STREQUAL "") |
17 | add_definitions(-DDEFAULT_CA_FILE=\"${OPENSSLDIR}/cert.pem\") | 24 | add_definitions(-DDEFAULT_CA_FILE=\"${OPENSSLDIR}/cert.pem\") |
18 | else() | 25 | else() |
diff --git a/apps/ocspcheck/Makefile.am b/apps/ocspcheck/Makefile.am index 51de6c6..e3f7971 100644 --- a/apps/ocspcheck/Makefile.am +++ b/apps/ocspcheck/Makefile.am | |||
@@ -19,3 +19,7 @@ noinst_HEADERS = http.h | |||
19 | if !HAVE_MEMMEM | 19 | if !HAVE_MEMMEM |
20 | ocspcheck_SOURCES += compat/memmem.c | 20 | ocspcheck_SOURCES += compat/memmem.c |
21 | endif | 21 | endif |
22 | |||
23 | if !HAVE_STRTONUM | ||
24 | ocspcheck_SOURCES += compat/strtonum.c | ||
25 | endif | ||
@@ -254,6 +254,7 @@ echo "copying ocspcheck(1) source" | |||
254 | $CP $sbin_src/ocspcheck/ocspcheck.8 apps/ocspcheck | 254 | $CP $sbin_src/ocspcheck/ocspcheck.8 apps/ocspcheck |
255 | rm -f apps/ocspcheck/*.c apps/ocspcheck/*.h | 255 | rm -f apps/ocspcheck/*.c apps/ocspcheck/*.h |
256 | $CP_LIBC $libc_src/string/memmem.c apps/ocspcheck/compat | 256 | $CP_LIBC $libc_src/string/memmem.c apps/ocspcheck/compat |
257 | $CP_LIBC $libc_src/stdlib/strtonum.c apps/ocspcheck/compat | ||
257 | for i in `awk '/SOURCES|HEADERS|MANS/ { print $3 }' apps/ocspcheck/Makefile.am` ; do | 258 | for i in `awk '/SOURCES|HEADERS|MANS/ { print $3 }' apps/ocspcheck/Makefile.am` ; do |
258 | if [ -e $sbin_src/ocspcheck/$i ]; then | 259 | if [ -e $sbin_src/ocspcheck/$i ]; then |
259 | $CP $sbin_src/ocspcheck/$i apps/ocspcheck | 260 | $CP $sbin_src/ocspcheck/$i apps/ocspcheck |