From eafa35569104c993b43a04f8ea302bac05a9d07f Mon Sep 17 00:00:00 2001 From: Yanray Wang Date: Mon, 6 Feb 2023 18:08:54 +0800 Subject: [PATCH] compat.sh: ignore $VERIFY in PSK TYPE There is no need to provide CA file in PSK. Thus VERIFY is meaningless for PSK. This change omits the arguments passed to the client and server for $VERIFY=YES. Signed-off-by: Yanray Wang --- tests/compat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compat.sh b/tests/compat.sh index 02ffed21c..bbe681bf4 100755 --- a/tests/compat.sh +++ b/tests/compat.sh @@ -959,7 +959,7 @@ setup_arguments() ;; esac - if [ "X$VERIFY" = "XYES" ]; + if [ "X$VERIFY" = "XYES" ] && [ "$TYPE" != "PSK" ]; then M_SERVER_ARGS="$M_SERVER_ARGS ca_file=data_files/test-ca_cat12.crt auth_mode=required" O_SERVER_ARGS="$O_SERVER_ARGS -CAfile data_files/test-ca_cat12.crt -Verify 10"