Skip to content

Commit

Permalink
tests: Test pincache without PIN in configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Nov 14, 2023
1 parent 597a250 commit 4709098
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/tbasic
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,12 @@ OPENSSL_CONF=${ORIG_OPENSSL_CONF}

title PARA "Test PIN caching"
ORIG_OPENSSL_CONF=${OPENSSL_CONF}
# cache interactively provided pins, but do not provide PIN in configuration
sed "s/^pkcs11-module-token-pin.*$/pkcs11-module-cache-pins = cache/" \
"${OPENSSL_CONF}" > "${OPENSSL_CONF}.pincaching"
"${OPENSSL_CONF}.nopin" > "${OPENSSL_CONF}.pincaching"
OPENSSL_CONF=${OPENSSL_CONF}.pincaching
$CHECKER "${TESTBLDDIR}/pincache"
$CHECKER "${TESTBLDDIR}/pincache" "$ECPRIURI"

if [[ -n $ECPRI3URI ]]; then
echo "ECPRI3URI is $ECPRI3URI"
Expand Down

0 comments on commit 4709098

Please sign in to comment.