Print opencryptoki.conf when pkcsGetTokenSlot fails

This commit is contained in:
Karel Srot 2024-10-21 16:58:13 +02:00
commit d337354d3f

View file

@ -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
}