aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--CMakeLists.txt7
-rw-r--r--apps/ocspcheck/CMakeLists.txt7
-rw-r--r--apps/ocspcheck/Makefile.am4
-rw-r--r--crypto/CMakeLists.txt5
-rw-r--r--crypto/Makefile.am7
-rw-r--r--include/Makefile.am1
-rw-r--r--include/compat/arpa/inet.h8
-rw-r--r--m4/check-libc.m44
-rw-r--r--m4/check-os-options.m42
-rwxr-xr-xupdate.sh2
11 files changed, 3 insertions, 46 deletions
diff --git a/.gitignore b/.gitignore
index 78d286f..48a00e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -124,7 +124,6 @@ include/openssl/*.h
124/apps/ocspcheck/*.h 124/apps/ocspcheck/*.h
125/apps/ocspcheck/*.c 125/apps/ocspcheck/*.c
126/apps/ocspcheck/ocspcheck* 126/apps/ocspcheck/ocspcheck*
127/apps/ocspcheck/compat/inet_ntop.c
128/apps/ocspcheck/compat/memmem.c 127/apps/ocspcheck/compat/memmem.c
129 128
130/apps/nc/*.h 129/apps/nc/*.h
@@ -150,7 +149,6 @@ include/openssl/*.h
150!/crypto/compat/getpagesize.c 149!/crypto/compat/getpagesize.c
151!/crypto/compat/posix_win.c 150!/crypto/compat/posix_win.c
152!/crypto/compat/bsd_asprintf.c 151!/crypto/compat/bsd_asprintf.c
153!/crypto/compat/inet_pton.c
154!/crypto/compat/timegm.c 152!/crypto/compat/timegm.c
155!/crypto/compat/ui_openssl_win.c 153!/crypto/compat/ui_openssl_win.c
156!/crypto/CMakeLists.txt 154!/crypto/CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fd755ba..df92e6a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -98,7 +98,7 @@ if(WIN32)
98 add_definitions(-D_CRT_SECURE_NO_WARNINGS) 98 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
99 add_definitions(-D_CRT_DEPRECATED_NO_WARNINGS) 99 add_definitions(-D_CRT_DEPRECATED_NO_WARNINGS)
100 add_definitions(-D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS) 100 add_definitions(-D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS)
101 add_definitions(-DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0501) 101 add_definitions(-DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600)
102 add_definitions(-DCPPFLAGS -DOPENSSL_NO_SPEED -DNO_SYSLOG -DNO_CRYPT) 102 add_definitions(-DCPPFLAGS -DOPENSSL_NO_SPEED -DNO_SYSLOG -DNO_CRYPT)
103endif() 103endif()
104 104
@@ -154,11 +154,6 @@ if(HAVE_ASPRINTF)
154 add_definitions(-DHAVE_ASPRINTF) 154 add_definitions(-DHAVE_ASPRINTF)
155endif() 155endif()
156 156
157check_function_exists(inet_pton HAVE_INET_PTON)
158if(HAVE_INET_PTON)
159 add_definitions(-DHAVE_INET_PTON)
160endif()
161
162check_function_exists(reallocarray HAVE_REALLOCARRAY) 157check_function_exists(reallocarray HAVE_REALLOCARRAY)
163if(HAVE_REALLOCARRAY) 158if(HAVE_REALLOCARRAY)
164 add_definitions(-DHAVE_REALLOCARRAY) 159 add_definitions(-DHAVE_REALLOCARRAY)
diff --git a/apps/ocspcheck/CMakeLists.txt b/apps/ocspcheck/CMakeLists.txt
index 4f89f4e..15af8a8 100644
--- a/apps/ocspcheck/CMakeLists.txt
+++ b/apps/ocspcheck/CMakeLists.txt
@@ -13,13 +13,6 @@ set(
13 ocspcheck.c 13 ocspcheck.c
14) 14)
15 15
16check_function_exists(inet_ntop HAVE_INET_NTOP)
17if(HAVE_INET_NTOP)
18 add_definitions(-DHAVE_INET_NTOP)
19else()
20 set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/inet_ntop.c)
21endif()
22
23check_function_exists(memmem HAVE_MEMMEM) 16check_function_exists(memmem HAVE_MEMMEM)
24if(HAVE_MEMMEM) 17if(HAVE_MEMMEM)
25 add_definitions(-DHAVE_MEMMEM) 18 add_definitions(-DHAVE_MEMMEM)
diff --git a/apps/ocspcheck/Makefile.am b/apps/ocspcheck/Makefile.am
index f7eb131..7482101 100644
--- a/apps/ocspcheck/Makefile.am
+++ b/apps/ocspcheck/Makefile.am
@@ -14,10 +14,6 @@ ocspcheck_SOURCES = http.c
14ocspcheck_SOURCES += ocspcheck.c 14ocspcheck_SOURCES += ocspcheck.c
15noinst_HEADERS = http.h 15noinst_HEADERS = http.h
16 16
17if !HAVE_INET_NTOP
18ocspcheck_SOURCES += compat/inet_ntop.c
19endif
20
21if !HAVE_MEMMEM 17if !HAVE_MEMMEM
22ocspcheck_SOURCES += compat/memmem.c 18ocspcheck_SOURCES += compat/memmem.c
23endif 19endif
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index c2ec985..0615110 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -687,11 +687,6 @@ if(NOT HAVE_GETPAGESIZE)
687 set(CRYPTO_SRC ${CRYPTO_SRC} compat/getpagesize.c) 687 set(CRYPTO_SRC ${CRYPTO_SRC} compat/getpagesize.c)
688endif() 688endif()
689 689
690if(NOT HAVE_INET_PTON)
691 set(CRYPTO_SRC ${CRYPTO_SRC} compat/inet_pton.c)
692 set(EXTRA_EXPORT ${EXTRA_EXPORT} inet_pton)
693endif()
694
695if(NOT HAVE_REALLOCARRAY) 690if(NOT HAVE_REALLOCARRAY)
696 set(CRYPTO_SRC ${CRYPTO_SRC} compat/reallocarray.c) 691 set(CRYPTO_SRC ${CRYPTO_SRC} compat/reallocarray.c)
697 set(EXTRA_EXPORT ${EXTRA_EXPORT} reallocarray) 692 set(EXTRA_EXPORT ${EXTRA_EXPORT} reallocarray)
diff --git a/crypto/Makefile.am b/crypto/Makefile.am
index 9520a41..8bfb4a9 100644
--- a/crypto/Makefile.am
+++ b/crypto/Makefile.am
@@ -40,9 +40,6 @@ endif
40if !HAVE_FREEZERO 40if !HAVE_FREEZERO
41 -echo freezero >> crypto_portable.sym 41 -echo freezero >> crypto_portable.sym
42endif 42endif
43if !HAVE_INET_PTON
44 -echo inet_pton >> crypto_portable.sym
45endif
46if !HAVE_REALLOCARRAY 43if !HAVE_REALLOCARRAY
47 -echo reallocarray >> crypto_portable.sym 44 -echo reallocarray >> crypto_portable.sym
48endif 45endif
@@ -166,10 +163,6 @@ if !HAVE_GETPAGESIZE
166libcompat_la_SOURCES += compat/getpagesize.c 163libcompat_la_SOURCES += compat/getpagesize.c
167endif 164endif
168 165
169if !HAVE_INET_PTON
170libcompat_la_SOURCES += compat/inet_pton.c
171endif
172
173if !HAVE_TIMEGM 166if !HAVE_TIMEGM
174libcompat_la_SOURCES += compat/timegm.c 167libcompat_la_SOURCES += compat/timegm.c
175endif 168endif
diff --git a/include/Makefile.am b/include/Makefile.am
index 728d921..976a9f9 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -21,7 +21,6 @@ noinst_HEADERS += compat/time.h
21noinst_HEADERS += compat/unistd.h 21noinst_HEADERS += compat/unistd.h
22noinst_HEADERS += compat/win32netcompat.h 22noinst_HEADERS += compat/win32netcompat.h
23 23
24noinst_HEADERS += compat/arpa/inet.h
25noinst_HEADERS += compat/arpa/nameser.h 24noinst_HEADERS += compat/arpa/nameser.h
26 25
27noinst_HEADERS += compat/machine/endian.h 26noinst_HEADERS += compat/machine/endian.h
diff --git a/include/compat/arpa/inet.h b/include/compat/arpa/inet.h
index f14ffde..4422f41 100644
--- a/include/compat/arpa/inet.h
+++ b/include/compat/arpa/inet.h
@@ -13,11 +13,3 @@
13#endif 13#endif
14 14
15#endif 15#endif
16
17#ifndef HAVE_INET_NTOP
18const char * inet_ntop(int af, const void *src, char *dst, socklen_t size);
19#endif
20
21#ifndef HAVE_INET_PTON
22int inet_pton(int af, const char * src, void * dst);
23#endif
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4
index 5bb4287..cacdd17 100644
--- a/m4/check-libc.m4
+++ b/m4/check-libc.m4
@@ -2,7 +2,7 @@ AC_DEFUN([CHECK_LIBC_COMPAT], [
2# Check for libc headers 2# Check for libc headers
3AC_CHECK_HEADERS([err.h readpassphrase.h]) 3AC_CHECK_HEADERS([err.h readpassphrase.h])
4# Check for general libc functions 4# Check for general libc functions
5AC_CHECK_FUNCS([asprintf freezero inet_ntop inet_pton memmem]) 5AC_CHECK_FUNCS([asprintf freezero memmem])
6AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray]) 6AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray])
7AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum]) 7AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum])
8AC_CHECK_FUNCS([timegm _mkgmtime]) 8AC_CHECK_FUNCS([timegm _mkgmtime])
@@ -22,8 +22,6 @@ AC_CACHE_CHECK([for getpagesize], ac_cv_func_getpagesize, [
22AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) 22AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes])
23AM_CONDITIONAL([HAVE_FREEZERO], [test "x$ac_cv_func_freezero" = xyes]) 23AM_CONDITIONAL([HAVE_FREEZERO], [test "x$ac_cv_func_freezero" = xyes])
24AM_CONDITIONAL([HAVE_GETPAGESIZE], [test "x$ac_cv_func_getpagesize" = xyes]) 24AM_CONDITIONAL([HAVE_GETPAGESIZE], [test "x$ac_cv_func_getpagesize" = xyes])
25AM_CONDITIONAL([HAVE_INET_NTOP], [test "x$ac_cv_func_inet_ntop" = xyes])
26AM_CONDITIONAL([HAVE_INET_PTON], [test "x$ac_cv_func_inet_pton" = xyes])
27AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes]) 25AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes])
28AM_CONDITIONAL([HAVE_READPASSPHRASE], [test "x$ac_cv_func_readpassphrase" = xyes]) 26AM_CONDITIONAL([HAVE_READPASSPHRASE], [test "x$ac_cv_func_readpassphrase" = xyes])
29AM_CONDITIONAL([HAVE_REALLOCARRAY], [test "x$ac_cv_func_reallocarray" = xyes]) 27AM_CONDITIONAL([HAVE_REALLOCARRAY], [test "x$ac_cv_func_reallocarray" = xyes])
diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4
index 3cf1956..414e63d 100644
--- a/m4/check-os-options.m4
+++ b/m4/check-os-options.m4
@@ -106,7 +106,7 @@ char buf[1]; getentropy(buf, 1);
106 BUILD_NC=no 106 BUILD_NC=no
107 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_POSIX -D_POSIX_SOURCE -D__USE_MINGW_ANSI_STDIO" 107 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_POSIX -D_POSIX_SOURCE -D__USE_MINGW_ANSI_STDIO"
108 CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS" 108 CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS"
109 CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0501" 109 CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600"
110 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_SPEED" 110 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_SPEED"
111 AC_SUBST([PLATFORM_LDADD], ['-lws2_32']) 111 AC_SUBST([PLATFORM_LDADD], ['-lws2_32'])
112 ;; 112 ;;
diff --git a/update.sh b/update.sh
index f11aa04..9e9ace6 100755
--- a/update.sh
+++ b/update.sh
@@ -82,7 +82,6 @@ for i in crypto/compat libtls-standalone/compat; do
82 for j in $libc_src/crypt/arc4random.c \ 82 for j in $libc_src/crypt/arc4random.c \
83 $libc_src/crypt/arc4random_uniform.c \ 83 $libc_src/crypt/arc4random_uniform.c \
84 $libc_src/crypt/chacha_private.h \ 84 $libc_src/crypt/chacha_private.h \
85 $libc_src/net/inet_pton.c \
86 $libc_src/stdlib/reallocarray.c \ 85 $libc_src/stdlib/reallocarray.c \
87 $libc_src/stdlib/recallocarray.c \ 86 $libc_src/stdlib/recallocarray.c \
88 $libc_src/string/explicit_bzero.c \ 87 $libc_src/string/explicit_bzero.c \
@@ -237,7 +236,6 @@ done
237echo "copying ocspcheck(1) source" 236echo "copying ocspcheck(1) source"
238$CP $sbin_src/ocspcheck/ocspcheck.8 apps/ocspcheck 237$CP $sbin_src/ocspcheck/ocspcheck.8 apps/ocspcheck
239rm -f apps/ocspcheck/*.c apps/ocspcheck/*.h 238rm -f apps/ocspcheck/*.c apps/ocspcheck/*.h
240$CP_LIBC $libc_src/net/inet_ntop.c apps/ocspcheck/compat
241$CP_LIBC $libc_src/string/memmem.c apps/ocspcheck/compat 239$CP_LIBC $libc_src/string/memmem.c apps/ocspcheck/compat
242for i in `awk '/SOURCES|HEADERS|MANS/ { print $3 }' apps/ocspcheck/Makefile.am` ; do 240for i in `awk '/SOURCES|HEADERS|MANS/ { print $3 }' apps/ocspcheck/Makefile.am` ; do
243 if [ -e $sbin_src/ocspcheck/$i ]; then 241 if [ -e $sbin_src/ocspcheck/$i ]; then