diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | include/string.h | 3 | ||||
-rwxr-xr-x | update.sh | 4 |
3 files changed, 7 insertions, 1 deletions
@@ -47,6 +47,7 @@ tests/mont* | |||
47 | tests/timingsafe* | 47 | tests/timingsafe* |
48 | tests/*test | 48 | tests/*test |
49 | tests/*test.c | 49 | tests/*test.c |
50 | tests/memmem.c | ||
50 | tests/*.pem | 51 | tests/*.pem |
51 | tests/testssl | 52 | tests/testssl |
52 | tests/*.txt | 53 | tests/*.txt |
diff --git a/include/string.h b/include/string.h index acdde6c..6277247 100644 --- a/include/string.h +++ b/include/string.h | |||
@@ -22,4 +22,7 @@ int timingsafe_bcmp(const void *b1, const void *b2, size_t n); | |||
22 | 22 | ||
23 | int timingsafe_memcmp(const void *b1, const void *b2, size_t len); | 23 | int timingsafe_memcmp(const void *b1, const void *b2, size_t len); |
24 | 24 | ||
25 | void * memmem(const void *big, size_t big_len, const void *little, | ||
26 | size_t little_len); | ||
27 | |||
25 | #endif | 28 | #endif |
@@ -312,10 +312,11 @@ tests_disabled=( | |||
312 | biotest | 312 | biotest |
313 | pidwraptest | 313 | pidwraptest |
314 | ) | 314 | ) |
315 | $CP $libc_src/string/memmem.c tests/ | ||
315 | (cd tests | 316 | (cd tests |
316 | $CP Makefile.am.tpl Makefile.am | 317 | $CP Makefile.am.tpl Makefile.am |
317 | 318 | ||
318 | for i in `ls -1 *.c|sort`; do | 319 | for i in `ls -1 *.c|sort|grep -v memmem.c`; do |
319 | TEST=`echo $i|sed -e "s/\.c//"` | 320 | TEST=`echo $i|sed -e "s/\.c//"` |
320 | if ! [[ ${test_drivers[*]} =~ "$TEST" ]]; then | 321 | if ! [[ ${test_drivers[*]} =~ "$TEST" ]]; then |
321 | echo "TESTS += $TEST" >> Makefile.am | 322 | echo "TESTS += $TEST" >> Makefile.am |
@@ -325,6 +326,7 @@ tests_disabled=( | |||
325 | echo "${TEST}_LDADD = \$(top_builddir)/ssl/libssl.la" >> Makefile.am | 326 | echo "${TEST}_LDADD = \$(top_builddir)/ssl/libssl.la" >> Makefile.am |
326 | echo "${TEST}_LDADD += \$(top_builddir)/crypto/libcrypto.la" >> Makefile.am | 327 | echo "${TEST}_LDADD += \$(top_builddir)/crypto/libcrypto.la" >> Makefile.am |
327 | done | 328 | done |
329 | echo "explicit_bzero_SOURCES += memmem.c" >> Makefile.am | ||
328 | ) | 330 | ) |
329 | $CP $libcrypto_regress/evp/evptests.txt tests | 331 | $CP $libcrypto_regress/evp/evptests.txt tests |
330 | $CP $libcrypto_regress/aead/aeadtests.txt tests | 332 | $CP $libcrypto_regress/aead/aeadtests.txt tests |