Fix opencryptoki.conf parsing in pkcsGetTokenSlot
This commit is contained in:
parent
d337354d3f
commit
2bde0885ef
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ pkcsGetTokenSlot() {
|
|||
local SLOT
|
||||
[ -z "$TYPE" ] && echo "Error: pkcsGetTokenSlot: no token type specified" && return 1
|
||||
if grep -q "^stdll = libpkcs11_$TYPE.so" $CONF; then
|
||||
SLOT=$( egrep "^(slot|stdll = libpkcs11_$TYPE.so)" $CONF | grep -B 1 "libpkcs11" | sed -n -e '1,1 s/slot //' -e '1,1 p' )
|
||||
SLOT=$( egrep "(^slot|stdll = libpkcs11_$TYPE.so)" $CONF | grep -B 1 "libpkcs11" | sed -n -e '1,1 s/slot //' -e '1,1 p' )
|
||||
echo $SLOT
|
||||
else
|
||||
echo "Error: pkcsGetTokenSlot: could not find type $TYPE in $CONF"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue