mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-12 14:45:09 -05:00
* deleted old version wolfSSL before updating * updated wolfSSL to the latest version(v4.4.0) * updated wolfSSL to the latest version(v4.4.0) * added macros for timing resistance Co-authored-by: RichardBarry <3073890+RichardBarry@users.noreply.github.com> Co-authored-by: Ming Yue <mingyue86010@gmail.com>
24 lines
835 B
Bash
24 lines
835 B
Bash
#!/bin/bash
|
|
|
|
# Run this script from the wolfSSL root as `./scripts/memtest.sh`.
|
|
|
|
./autogen.sh
|
|
./configure --enable-debug --disable-shared --enable-memtest \
|
|
--enable-opensslextra --enable-des3 --enable-dh --enable-ecc --enable-aesgcm --enable-aesccm --enable-hc128 \
|
|
--enable-sniffer --enable-psk --enable-rabbit --enable-camellia --enable-sha512 --enable-crl --enable-ocsp --enable-savesession \
|
|
--enable-savecert --enable-atomicuser --enable-pkcallbacks --enable-scep;
|
|
|
|
#DTLS has issue with trapping client/server failure disconnect since its stateless. Need to find way to communicate failure through file system.
|
|
#--enable-dtls
|
|
make
|
|
|
|
for i in {1..1000}
|
|
do
|
|
echo "Trying $i...\n"
|
|
|
|
./tests/unit.test > ./scripts/memtest.txt 2>&1
|
|
|
|
RESULT=$?
|
|
[ $RESULT -eq 139 ] && echo "Mem Seg Fault" && exit 1
|
|
done
|
|
echo "Loop SUCCESS"
|