]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add test coverage for PKCS7_TEXT mode openssl-3.0 16786/head
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 10 Aug 2025 16:50:37 +0000 (18:50 +0200)
committerNeil Horman <nhorman@openssl.org>
Thu, 14 Aug 2025 15:18:28 +0000 (11:18 -0400)
commitcfcb0e1e5daa972bdb33c728359cdaa118e269c3
treeaead057c77fba9ae169569819a1221d50f181883
parentbde5b413a79c774882103718fbed4c3474abf3d4
Add test coverage for PKCS7_TEXT mode

This was inspired by the following commit
9882d389df71 ("crypto/pkcs7/pk7_smime.c: Add BIO_free() to avoid memory leak")
which discovered a bug in PKCS7_verify(..., PKCS7_TEXT).
While there is some test coverage for PKCS_verify by
./test/pkcs7_test.c, there is no test coverage whatsoever
of the PKCS7_TEXT flag for PKCS7_sign, PKCS7_encrypt and
PKCS7_decrypt.
So this adds some test coverage for those functions as well.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28223)

(cherry picked from commit d582adc672bca4bc71a7766bb692558086efdd69)
test/recipes/80-test_cms.t