From 3f8c62dc41cbed0d50e1857c50ef71b2c9c59aff Mon Sep 17 00:00:00 2001 From: Dirk Date: Sat, 7 Aug 2021 15:26:51 +0200 Subject: [PATCH] Change debugme1 calls to include redirection from stderr back to stdout The fact that debugme1() redirects to stderr and the calls to this functions redo that is deliberately as in the future we might want to use debugme1 without redirection. --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 7e3a604..34c9f20 100755 --- a/testssl.sh +++ b/testssl.sh @@ -7505,7 +7505,7 @@ determine_tls_extensions() { fi # Keep it "on file" for debugging purposes - debugme1 safe_echo "$TLS_EXTENSIONS" >"$TEMPDIR/$NODE.$NODEIP.tls_extensions.txt" + debugme1 safe_echo "$TLS_EXTENSIONS" 2>&1 >"$TEMPDIR/$NODE.$NODEIP.tls_extensions.txt" return $success } @@ -10382,7 +10382,7 @@ run_fs() { CURVES_OFFERED="$curves_offered" CURVES_OFFERED=$(strip_trailing_space "$CURVES_OFFERED") # Keep it "on file" for debugging purposes - debugme1 safe_echo "$CURVES_OFFERED" >"$TEMPDIR/$NODE.$NODEIP.curves_offered.txt" + debugme1 safe_echo "$CURVES_OFFERED" 2>&1 >"$TEMPDIR/$NODE.$NODEIP.curves_offered.txt" # find out what groups are supported. if "$using_sockets" && ( "$fs_tls13_offered" || "$ffdhe_offered" ); then