mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-17 16:13:48 +00:00
Remove use of GNU sed features from ssl-opt.sh
This commit is contained in:
parent
5987ef451c
commit
acdae0cb33
@ -326,7 +326,7 @@ wait_server_start() {
|
|||||||
# acceptable bounds
|
# acceptable bounds
|
||||||
check_server_hello_time() {
|
check_server_hello_time() {
|
||||||
# Extract the time from the debug (lvl 3) output of the client
|
# Extract the time from the debug (lvl 3) output of the client
|
||||||
SERVER_HELLO_TIME="$(cat "$1" | sed -n 's/.*server hello, current time: \([0-9]\+\)$/\1/p')"
|
SERVER_HELLO_TIME="$(sed -n 's/.*server hello, current time: //p' < "$1")"
|
||||||
# Get the Unix timestamp for now
|
# Get the Unix timestamp for now
|
||||||
CUR_TIME=$(date +'%s')
|
CUR_TIME=$(date +'%s')
|
||||||
THRESHOLD_IN_SECS=300
|
THRESHOLD_IN_SECS=300
|
||||||
|
Loading…
Reference in New Issue
Block a user