mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-13 23:25:10 -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>
29 lines
418 B
Bash
29 lines
418 B
Bash
#!/bin/sh
|
|
|
|
# ping.test
|
|
|
|
# defaults
|
|
server=www.wolfssl.com
|
|
tries=2
|
|
|
|
# populate args
|
|
if [ "$#" -gt 1 ]; then
|
|
tries=$2
|
|
fi
|
|
if [ "$#" -gt 0 ]; then
|
|
server=$1
|
|
fi
|
|
|
|
# determine os
|
|
OS="`uname`"
|
|
case $OS in
|
|
MINGW* | MSYS*) PINGSW=-n ;;
|
|
*) PINGSW=-c ;;
|
|
esac
|
|
|
|
# is our desired server there?
|
|
ping $PINGSW $tries $server
|
|
RESULT=$?
|
|
[ $RESULT -ne 0 ] && echo -e "\n\nCouldn't find $server, skipping" && exit 1
|
|
|
|
exit 0
|