build openbsd memmem implementation for explicit_bzero test
memmem is not always available, and not all memmem's work the same way ok beck@ guenther@
This commit is contained in:
parent
451dbd967c
commit
ea6e7116c9
1
.gitignore
vendored
1
.gitignore
vendored
@ -47,6 +47,7 @@ tests/mont*
|
|||||||
tests/timingsafe*
|
tests/timingsafe*
|
||||||
tests/*test
|
tests/*test
|
||||||
tests/*test.c
|
tests/*test.c
|
||||||
|
tests/memmem.c
|
||||||
tests/*.pem
|
tests/*.pem
|
||||||
tests/testssl
|
tests/testssl
|
||||||
tests/*.txt
|
tests/*.txt
|
||||||
|
@ -22,4 +22,7 @@ int timingsafe_bcmp(const void *b1, const void *b2, size_t n);
|
|||||||
|
|
||||||
int timingsafe_memcmp(const void *b1, const void *b2, size_t len);
|
int timingsafe_memcmp(const void *b1, const void *b2, size_t len);
|
||||||
|
|
||||||
|
void * memmem(const void *big, size_t big_len, const void *little,
|
||||||
|
size_t little_len);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -312,10 +312,11 @@ tests_disabled=(
|
|||||||
biotest
|
biotest
|
||||||
pidwraptest
|
pidwraptest
|
||||||
)
|
)
|
||||||
|
$CP $libc_src/string/memmem.c tests/
|
||||||
(cd tests
|
(cd tests
|
||||||
$CP Makefile.am.tpl Makefile.am
|
$CP Makefile.am.tpl Makefile.am
|
||||||
|
|
||||||
for i in `ls -1 *.c|sort`; do
|
for i in `ls -1 *.c|sort|grep -v memmem.c`; do
|
||||||
TEST=`echo $i|sed -e "s/\.c//"`
|
TEST=`echo $i|sed -e "s/\.c//"`
|
||||||
if ! [[ ${test_drivers[*]} =~ "$TEST" ]]; then
|
if ! [[ ${test_drivers[*]} =~ "$TEST" ]]; then
|
||||||
echo "TESTS += $TEST" >> Makefile.am
|
echo "TESTS += $TEST" >> Makefile.am
|
||||||
@ -325,6 +326,7 @@ tests_disabled=(
|
|||||||
echo "${TEST}_LDADD = \$(top_builddir)/ssl/libssl.la" >> Makefile.am
|
echo "${TEST}_LDADD = \$(top_builddir)/ssl/libssl.la" >> Makefile.am
|
||||||
echo "${TEST}_LDADD += \$(top_builddir)/crypto/libcrypto.la" >> Makefile.am
|
echo "${TEST}_LDADD += \$(top_builddir)/crypto/libcrypto.la" >> Makefile.am
|
||||||
done
|
done
|
||||||
|
echo "explicit_bzero_SOURCES += memmem.c" >> Makefile.am
|
||||||
)
|
)
|
||||||
$CP $libcrypto_regress/evp/evptests.txt tests
|
$CP $libcrypto_regress/evp/evptests.txt tests
|
||||||
$CP $libcrypto_regress/aead/aeadtests.txt tests
|
$CP $libcrypto_regress/aead/aeadtests.txt tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user