Skip to content

Commit

Permalink
tests: Disable OperationState for softhsm and softokn
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje authored and simo5 committed Oct 24, 2024
1 parent 620c04e commit ab6370f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/softhsm-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ export TOKENLABELURI="SoftHSM%20Token"
softhsm2-util --init-token --label "${TOKENLABEL}" --free --pin "${PINVALUE}" --so-pin "${PINVALUE}"

#softhsm crashes on de-init so we need to default to this quirk
export TOKENOPTIONS="pkcs11-module-quirks = no-deinit"
export TOKENOPTIONS="pkcs11-module-quirks = no-deinit no-operation-state"

export TOKENCONFIGVARS="export SOFTHSM2_CONF=${TMPPDIR}/softhsm.conf"
2 changes: 2 additions & 0 deletions tests/softokn-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ export NSS_LIB_PARAMS="configDir=${TOKDIR}"

export TOKENLABEL="NSS Certificate DB"
export TOKENLABELURI="NSS%20Certificate%20DB"

export TOKENOPTIONS="pkcs11-module-quirks = no-operation-state"
export TOKENCONFIGVARS="export NSS_LIB_PARAMS=configDir=${TOKDIR}"

0 comments on commit ab6370f

Please sign in to comment.