Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .github/workflows/asan.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/openssl-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ jobs:

- name: Build and test wolfProvider
run: |
WOLFPROV_CONFIG_CFLAGS="-static-libasan -fsanitize=address,undefined -g" \
OPENSSL_CFLAGS="-static-libasan -fsanitize=address,undefined -g" \
OPENSSL_CXXFLAGS="-static-libasan -fsanitize=address,undefined -g" \
OPENSSL_LDFLAGS="-fsanitize=address,undefined -static-libasan" \
OPENSSL_TAG=${{ matrix.openssl_ref }} \
WOLFSSL_TAG=${{ matrix.wolfssl_ref }} \
./scripts/build-wolfprovider.sh
Expand Down
2 changes: 1 addition & 1 deletion scripts/env-setup
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fi
export OPENSSL_CONF="${OPENSSL_CONF:=$DEFAULT_PROVIDER_CONF}"

export OPENSSL_MODULES="${OPENSSL_MODULES:=$WOLFPROV_LIB_PATH}"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH:=$OPENSSL_LIB_PATH/pkgconfig:$REPO_ROOT/libdefault-stub-install/lib}"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH:=$OPENSSL_LIB_PATH/pkgconfig}"

# Other variables used by test scripts
export WOLFPROV_PATH="${WOLFPROV_LIB_PATH}"
Expand Down
7 changes: 7 additions & 0 deletions scripts/utils-openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ OPENSSL_INSTALL_DIR=${SCRIPT_DIR}/../openssl-install
OPENSSL_BIN=${OPENSSL_INSTALL_DIR}/bin/openssl
OPENSSL_TEST=${OPENSSL_SOURCE_DIR}/test
OPENSSL_LIB_DIRS="${OPENSSL_INSTALL_DIR}/lib:${OPENSSL_INSTALL_DIR}/lib64"
OPENSSL_CFLAGS=${OPENSSL_CFLAGS:-""}
OPENSSL_CXXFLAGS=${OPENSSL_CXXFLAGS:-""}
OPENSSL_LDFLAGS=${OPENSSL_LDFLAGS:-""}

NUMCPU=${NUMCPU:-8}
WOLFPROV_DEBUG=${WOLFPROV_DEBUG:-0}
Expand Down Expand Up @@ -227,6 +230,10 @@ install_openssl() {
fi
printf "Done.\n"

export CFLAGS="${OPENSSL_CFLAGS}"
export CXXFLAGS="${OPENSSL_CXXFLAGS}"
export LDFLAGS="${OPENSSL_LDFLAGS}"

printf "\tBuild OpenSSL ${OPENSSL_TAG} ... "
make -j$NUMCPU >>$LOG_FILE 2>&1
if [ $? != 0 ]; then
Expand Down
33 changes: 20 additions & 13 deletions scripts/utils-wolfprovider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,32 +130,42 @@ install_wolfprov() {
fi
printf "Done.\n"

# Install prior to test so that the library is present in the known location.
printf "\tInstall wolfProvider ... "
make install >>$LOG_FILE 2>&1
if [ $? != 0 ]; then
printf "\n\n...\n"
tail -n 40 $LOG_FILE
do_cleanup
exit 1
fi
printf "Done.\n"

# Build the replacement default library after wolfprov to avoid linker errors
# but before testing so that the library is present if needed
if [ "$WOLFPROV_REPLACE_DEFAULT" = "1" ]; then
printf "\tWARNING: Skipping tests in replace mode...\n"
else
# Setup the environment to ensure we use the local builds of wolfprov, wolfssl, and openssl.
if ! source ${SCRIPT_DIR}/env-setup >/dev/null 2>&1; then
printf "\n\nError: Failed to source env-setup\n"
do_cleanup
exit 1
fi

printf "\tTest wolfProvider ... "
make test >>$LOG_FILE 2>&1
if [ $? != 0 ]; then
printf "\n\n...\n"
tail -n 40 $LOG_FILE
# Clean up the install directory
make uninstall >>$LOG_FILE 2>&1 || true
do_cleanup
exit 1
fi
printf "Done.\n"
fi

printf "\tInstall wolfProvider ... "
make install >>$LOG_FILE 2>&1
if [ $? != 0 ]; then
printf "\n\n...\n"
tail -n 40 $LOG_FILE
do_cleanup
exit 1
fi
printf "Done.\n"

popd &> /dev/null
}

Expand All @@ -174,9 +184,6 @@ init_wolfprov() {
install_wolfprov
fi
printf "\twolfProvider installed in: ${WOLFPROV_INSTALL_DIR}\n"

export OPENSSL_MODULES=$WOLFPROV_PATH
export OPENSSL_CONF=${WOLFPROV_CONFIG}
fi
}

Loading