From d337354d3f14ca97894bcb2474cbb777d6e10651 Mon Sep 17 00:00:00 2001 From: Karel Srot Date: Mon, 21 Oct 2024 16:58:13 +0200 Subject: [PATCH] Print opencryptoki.conf when pkcsGetTokenSlot fails --- Library/token-manipulation/lib.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/token-manipulation/lib.sh b/Library/token-manipulation/lib.sh index f6b37ec..b9647a1 100644 --- a/Library/token-manipulation/lib.sh +++ b/Library/token-manipulation/lib.sh @@ -122,6 +122,9 @@ pkcsGetTokenSlot() { echo $SLOT else echo "Error: pkcsGetTokenSlot: could not find type $TYPE in $CONF" + echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + cat $CONF + echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" return 1 fi }