Skip to content

Commit

Permalink
test: fix keyopt old format leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
alonbl committed May 24, 2023
1 parent 9f498dc commit eff1886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/mycms-tool/sign/test-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,15 @@ __EOF__
--cms-out="${CMS}" \
--data-in="${DATA}" \
--signer-cert="file:cert=${builddir}/gen/test1.crt:key=${builddir}/gen/test1.key" \
--keyopt="rsa_padding_mode=${padding}" \
--keyopt="rsa_padding_mode:${padding}" \
|| die "keyopt.sign.test1"

echo "Signing by test2"
doval "${MYCMS_TOOL}" sign \
--cms-in="${CMS}" \
--cms-out="${CMS2}" \
--signer-cert="file:cert=${builddir}/gen/test2.crt:key=${builddir}/gen/test2.key" \
--keyopt="rsa_padding_mode=${padding}" \
--keyopt="rsa_padding_mode:${padding}" \
|| die "sanity.sign.test2"

[ 2 -eq $("${OPENSSL}" asn1parse -in "${CMS2}" -inform DER | grep "${padding_str}" | wc -l) ] || die "Expected '${padding_str}' for '${padding}'"
Expand Down

0 comments on commit eff1886

Please sign in to comment.