aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/CMakeLists.txt1
-rw-r--r--crypto/CMakeLists.txt5
-rw-r--r--crypto/Makefile.am4
-rw-r--r--m4/check-libc.m43
-rw-r--r--tls/CMakeLists.txt4
-rw-r--r--tls/Makefile.am4
-rwxr-xr-xupdate.sh4
7 files changed, 14 insertions, 11 deletions
diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
index b55006f..08a5a41 100644
--- a/apps/CMakeLists.txt
+++ b/apps/CMakeLists.txt
@@ -1,2 +1,3 @@
1add_subdirectory(ocspcheck)
1add_subdirectory(openssl) 2add_subdirectory(openssl)
2add_subdirectory(nc) 3add_subdirectory(nc)
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index d8e1ddb..41dc37b 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -714,6 +714,11 @@ if(NOT HAVE_STRNDUP)
714 endif() 714 endif()
715endif() 715endif()
716 716
717if(NOT HAVE_STRSEP)
718 set(CRYPTO_SRC ${CRYPTO_SRC} compat/strsep.c)
719 set(EXTRA_EXPORT ${EXTRA_EXPORT} strsep)
720endif()
721
717if(NOT HAVE_TIMEGM) 722if(NOT HAVE_TIMEGM)
718 set(CRYPTO_SRC ${CRYPTO_SRC} compat/timegm.c) 723 set(CRYPTO_SRC ${CRYPTO_SRC} compat/timegm.c)
719 set(EXTRA_EXPORT ${EXTRA_EXPORT} timegm) 724 set(EXTRA_EXPORT ${EXTRA_EXPORT} timegm)
diff --git a/crypto/Makefile.am b/crypto/Makefile.am
index 1332c24..26def2a 100644
--- a/crypto/Makefile.am
+++ b/crypto/Makefile.am
@@ -73,6 +73,10 @@ libcompat_la_SOURCES += compat/strnlen.c
73endif 73endif
74endif 74endif
75 75
76if !HAVE_STRSEP
77libcompat_la_SOURCES += compat/strsep.c
78endif
79
76if !HAVE_ASPRINTF 80if !HAVE_ASPRINTF
77libcompat_la_SOURCES += compat/bsd-asprintf.c 81libcompat_la_SOURCES += compat/bsd-asprintf.c
78endif 82endif
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4
index 3c0ed31..73ff4e6 100644
--- a/m4/check-libc.m4
+++ b/m4/check-libc.m4
@@ -188,6 +188,9 @@ fi
188if test "x$ac_cv_func_strnlen" = "xno" ; then 188if test "x$ac_cv_func_strnlen" = "xno" ; then
189 echo strnlen >> $crypto_p_sym 189 echo strnlen >> $crypto_p_sym
190fi 190fi
191if test "x$ac_cv_func_strsep" = "xno" ; then
192 echo strsep >> $crypto_p_sym
193fi
191if test "x$ac_cv_func_timegm" = "xno" ; then 194if test "x$ac_cv_func_timegm" = "xno" ; then
192 echo timegm >> $crypto_p_sym 195 echo timegm >> $crypto_p_sym
193fi 196fi
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt
index dcefad7..b71fb37 100644
--- a/tls/CMakeLists.txt
+++ b/tls/CMakeLists.txt
@@ -19,10 +19,6 @@ set(
19) 19)
20 20
21 21
22if(NOT HAVE_STRSEP)
23 set(TLS_SRC ${TLS_SRC} strsep.c)
24endif()
25
26if(NOT "${OPENSSLDIR}" STREQUAL "") 22if(NOT "${OPENSSLDIR}" STREQUAL "")
27 add_definitions(-D_PATH_SSL_CA_FILE=\"${OPENSSLDIR}/cert.pem\") 23 add_definitions(-D_PATH_SSL_CA_FILE=\"${OPENSSLDIR}/cert.pem\")
28else() 24else()
diff --git a/tls/Makefile.am b/tls/Makefile.am
index b6fdd58..bd2707a 100644
--- a/tls/Makefile.am
+++ b/tls/Makefile.am
@@ -29,7 +29,3 @@ libtls_la_SOURCES += tls_peer.c
29libtls_la_SOURCES += tls_util.c 29libtls_la_SOURCES += tls_util.c
30libtls_la_SOURCES += tls_verify.c 30libtls_la_SOURCES += tls_verify.c
31noinst_HEADERS = tls_internal.h 31noinst_HEADERS = tls_internal.h
32
33if !HAVE_STRSEP
34libtls_la_SOURCES += strsep.c
35endif
diff --git a/update.sh b/update.sh
index 5295bf4..0c51b43 100755
--- a/update.sh
+++ b/update.sh
@@ -83,6 +83,7 @@ for i in crypto/compat libtls-standalone/compat; do
83 $libc_src/string/strlcat.c \ 83 $libc_src/string/strlcat.c \
84 $libc_src/string/strndup.c \ 84 $libc_src/string/strndup.c \
85 $libc_src/string/strnlen.c \ 85 $libc_src/string/strnlen.c \
86 $libc_src/string/strsep.c \
86 $libc_src/string/timingsafe_bcmp.c \ 87 $libc_src/string/timingsafe_bcmp.c \
87 $libc_src/string/timingsafe_memcmp.c \ 88 $libc_src/string/timingsafe_memcmp.c \
88 $libcrypto_src/arc4random/getentropy_*.c \ 89 $libcrypto_src/arc4random/getentropy_*.c \
@@ -205,9 +206,6 @@ done
205# add the libtls symbol export list 206# add the libtls symbol export list
206grep '^[[:alpha:]]' < $libtls_src/Symbols.list > tls/tls.sym 207grep '^[[:alpha:]]' < $libtls_src/Symbols.list > tls/tls.sym
207 208
208$CP_LIBC $libc_src/string/strsep.c tls
209$CP_LIBC $libc_src/string/strsep.c libtls-standalone/compat
210
211mkdir -p libtls-standalone/m4 209mkdir -p libtls-standalone/m4
212$CP m4/check*.m4 \ 210$CP m4/check*.m4 \
213 m4/disable*.m4 \ 211 m4/disable*.m4 \