Skip to content

Commit

Permalink
Move the check for the p11-kit to proxy script
Browse files Browse the repository at this point in the history
The softhsm no longer uses the p11-kit proxy.

It is not relevant to kryoptic either.

Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Jul 17, 2024
1 parent 21941b4 commit b2dcc88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion tests/setup-kryoptic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,6 @@ sed -e "s|@libtoollibs@|${LIBSPATH}|g" \
title LINE "Export test variables to ${TMPPDIR}/testvars"
cat >> "${TMPPDIR}/testvars" <<DBGSCRIPT
export P11LIB=${P11LIB}
export P11KITCLIENTPATH=${P11KITCLIENTPATH}
export PKCS11_PROVIDER_MODULE=${P11LIB}
export PKCS11_PROVIDER_DEBUG="file:${TMPPDIR}/p11prov-debug.log"
export OPENSSL_CONF="${OPENSSL_CONF}"
Expand Down
6 changes: 0 additions & 6 deletions tests/setup-softhsm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ else
sed_inplace=("-i" "")
fi

if [ "$P11KITCLIENTPATH" = "" ]; then
echo "Missing P11KITCLIENTPATH env variable"
exit 0
fi

find_softhsm() {
for _lib in "$@" ; do
if test -f "$_lib" ; then
Expand Down Expand Up @@ -392,7 +387,6 @@ sed -e "s|@libtoollibs@|${LIBSPATH}|g" \
title LINE "Export test variables to ${TMPPDIR}/testvars"
cat >> "${TMPPDIR}/testvars" <<DBGSCRIPT
export P11LIB=${P11LIB}
export P11KITCLIENTPATH=${P11KITCLIENTPATH}
export PKCS11_PROVIDER_MODULE=${P11LIB}
export PKCS11_PROVIDER_DEBUG="file:${TMPPDIR}/p11prov-debug.log"
export OPENSSL_CONF="${OPENSSL_CONF}"
Expand Down
5 changes: 5 additions & 0 deletions tests/softhsm-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ if [ -z "$XDG_RUNTIME_DIR" ]; then
export XDG_RUNTIME_DIR=$PWD
fi

if [ "$P11KITCLIENTPATH" = "" ]; then
echo "Missing P11KITCLIENTPATH env variable"
exit 0
fi

title PARA "Start the p11-kit server and check if it works"
# shellcheck disable=SC2046 # we want to split these for eval
eval $(p11-kit server --provider "$P11LIB" "pkcs11:")
Expand Down

0 comments on commit b2dcc88

Please sign in to comment.