diff options
-rw-r--r-- | apps/CMakeLists.txt | 1 | ||||
-rw-r--r-- | crypto/CMakeLists.txt | 5 | ||||
-rw-r--r-- | crypto/Makefile.am | 4 | ||||
-rw-r--r-- | m4/check-libc.m4 | 3 | ||||
-rw-r--r-- | tls/CMakeLists.txt | 4 | ||||
-rw-r--r-- | tls/Makefile.am | 4 | ||||
-rwxr-xr-x | update.sh | 4 |
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 @@ | |||
1 | add_subdirectory(ocspcheck) | ||
1 | add_subdirectory(openssl) | 2 | add_subdirectory(openssl) |
2 | add_subdirectory(nc) | 3 | add_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() |
715 | endif() | 715 | endif() |
716 | 716 | ||
717 | if(NOT HAVE_STRSEP) | ||
718 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strsep.c) | ||
719 | set(EXTRA_EXPORT ${EXTRA_EXPORT} strsep) | ||
720 | endif() | ||
721 | |||
717 | if(NOT HAVE_TIMEGM) | 722 | if(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 | |||
73 | endif | 73 | endif |
74 | endif | 74 | endif |
75 | 75 | ||
76 | if !HAVE_STRSEP | ||
77 | libcompat_la_SOURCES += compat/strsep.c | ||
78 | endif | ||
79 | |||
76 | if !HAVE_ASPRINTF | 80 | if !HAVE_ASPRINTF |
77 | libcompat_la_SOURCES += compat/bsd-asprintf.c | 81 | libcompat_la_SOURCES += compat/bsd-asprintf.c |
78 | endif | 82 | endif |
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 | |||
188 | if test "x$ac_cv_func_strnlen" = "xno" ; then | 188 | if test "x$ac_cv_func_strnlen" = "xno" ; then |
189 | echo strnlen >> $crypto_p_sym | 189 | echo strnlen >> $crypto_p_sym |
190 | fi | 190 | fi |
191 | if test "x$ac_cv_func_strsep" = "xno" ; then | ||
192 | echo strsep >> $crypto_p_sym | ||
193 | fi | ||
191 | if test "x$ac_cv_func_timegm" = "xno" ; then | 194 | if test "x$ac_cv_func_timegm" = "xno" ; then |
192 | echo timegm >> $crypto_p_sym | 195 | echo timegm >> $crypto_p_sym |
193 | fi | 196 | fi |
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 | ||
22 | if(NOT HAVE_STRSEP) | ||
23 | set(TLS_SRC ${TLS_SRC} strsep.c) | ||
24 | endif() | ||
25 | |||
26 | if(NOT "${OPENSSLDIR}" STREQUAL "") | 22 | if(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\") |
28 | else() | 24 | else() |
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 | |||
29 | libtls_la_SOURCES += tls_util.c | 29 | libtls_la_SOURCES += tls_util.c |
30 | libtls_la_SOURCES += tls_verify.c | 30 | libtls_la_SOURCES += tls_verify.c |
31 | noinst_HEADERS = tls_internal.h | 31 | noinst_HEADERS = tls_internal.h |
32 | |||
33 | if !HAVE_STRSEP | ||
34 | libtls_la_SOURCES += strsep.c | ||
35 | endif | ||
@@ -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 |
206 | grep '^[[:alpha:]]' < $libtls_src/Symbols.list > tls/tls.sym | 207 | grep '^[[: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 | |||
211 | mkdir -p libtls-standalone/m4 | 209 | mkdir -p libtls-standalone/m4 |
212 | $CP m4/check*.m4 \ | 210 | $CP m4/check*.m4 \ |
213 | m4/disable*.m4 \ | 211 | m4/disable*.m4 \ |