Fix libctx passing for CMS PWRI use

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26937)
This commit is contained in:
Jakub Zelenka 2025-02-28 17:04:50 +01:00 committed by Tomas Mraz
parent 7e431da4d8
commit 5045712d3d
3 changed files with 18 additions and 5 deletions

View file

@ -354,6 +354,16 @@ my @smime_cms_tests = (
\&final_compare
],
[ "enveloped content test streaming PEM format, AES-128-CBC cipher, password",
[ "{cmd1}", @prov, "-encrypt", "-in", $smcont, "-outform", "PEM", "-aes128",
"-stream", "-out", "{output}.cms",
"-pwri_password", "test" ],
[ "{cmd2}", @prov, "-decrypt", "-in", "{output}.cms", "-out", "{output}.txt",
"-inform", "PEM",
"-pwri_password", "test" ],
\&final_compare
],
[ "data content test streaming PEM format",
[ "{cmd1}", @prov, "-data_create", "-in", $smcont, "-outform", "PEM",
"-nodetach", "-stream", "-out", "{output}.cms" ],