We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1c0969b + 523e8e7 commit 1095646Copy full SHA for 1095646
1 file changed
scripts/utils-wolfssl.sh
@@ -103,11 +103,12 @@ install_wolfssl() {
103
# Check if there is a FIPS mismatch
104
# If the system wolfSSL is FIPS, we need to be doing a FIPS build
105
dpkg -l | grep "^ii.*libwolfssl[[:space:]]" | grep -q "fips"
106
- if [ $? -eq 0 ] && [ "$WOLFSSL_ISFIPS" != "1" ]; then
+ fips_mode=$?
107
+ if [ $fips_mode -eq 0 ] && [ "$WOLFSSL_ISFIPS" != "1" ]; then
108
printf "ERROR: System wolfSSL is FIPS, but WOLFSSL_ISFIPS is not set to 1\n"
109
do_cleanup
110
exit 1
- elif [ $? -ne 0 ] && [ "$WOLFSSL_ISFIPS" != "0" ]; then
111
+ elif [ $fips_mode -ne 0 ] && [ "$WOLFSSL_ISFIPS" != "0" ]; then
112
printf "ERROR: System wolfSSL is non-FIPS, but WOLFSSL_ISFIPS is set to 1\n"
113
114
0 commit comments