@@ -10,6 +10,7 @@ show_help() {
1010 echo " --clean Run make clean in OpenSSL, wolfSSL, and wolfProvider"
1111 echo " --distclean Remove source and install directories of OpenSSL, wolfSSL, and wolfProvider"
1212 echo " --debug Builds OpenSSL, wolfSSL, and WolfProvider with debugging enabled. This is the same as setting WOLFPROV_DEBUG=1"
13+ echo " --debug-log=FILE Force all wolfProvider debug output to specified log file instead of stderr/stdout (FILE = path to log file you want to use)"
1314 echo " --debug-asn-template Enable debug information for asn within wolfSSL"
1415 echo " --disable-err-trace No debug trace messages from library errors in wolfSSL"
1516 echo " --openssl-ver=VER Which version of OpenSSL to clone"
@@ -33,6 +34,7 @@ show_help() {
3334 echo " WOLFPROV_CLEAN If set to 1, run make clean in OpenSSL, wolfSSL, and wolfProvider"
3435 echo " WOLFPROV_DISTCLEAN If set to 1, remove the source and install directories of OpenSSL, wolfSSL, and wolfProvider"
3536 echo " WOLFPROV_DEBUG If set to 1, builds OpenSSL, wolfSSL, and wolfProvider with debug options enabled"
37+ echo " WOLFPROV_LOG_FILE Path to log file for wolfProvider debug output (alternative to stderr)"
3638 echo " WOLFPROV_QUICKTEST If set to 1, disables some tests in the test suite to increase test speed"
3739 echo " WOLFPROV_DISABLE_ERR_TRACE If set to 1, wolfSSL will not be configured with --enable-debug-trace-errcodes=backtrace"
3840 echo " WOLFPROV_LEAVE_SILENT If set to 1, suppress logging of return 0 in functions where return 0 is expected behavior sometimes."
@@ -57,6 +59,14 @@ for arg in "$@"; do
5759 --debug)
5860 WOLFPROV_DEBUG=1
5961 ;;
62+ --debug-log=* )
63+ IFS=' =' read -r trash log_file <<< " $arg"
64+ if [ -z " $log_file " ]; then
65+ echo " No file path given for --debug-log"
66+ args_wrong+=" $arg , "
67+ fi
68+ WOLFPROV_LOG_FILE=" $log_file "
69+ ;;
6070 --debug-asn-template)
6171 WOLFSSL_DEBUG_ASN_TEMPLATE=1
6272 ;;
0 commit comments