]> git.ipfire.org Git - thirdparty/openssl.git/commit
SMIME_text() and SMIME_crlf_copy() small refactoring
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Sat, 11 Oct 2025 12:10:48 +0000 (20:10 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 17 Oct 2025 17:32:21 +0000 (19:32 +0200)
commit999bce720fcefb0109368f942d5170c1c98dd5a6
treeb08c4e36ff2ab18f095158d562d15ebc78d5e2f5
parentb8d80f0e9346ef7645dbc71a3e44b8087b70f3f2
SMIME_text() and SMIME_crlf_copy() small refactoring

When out is NULL, SMIME_text() now skips BIO_write entirely and continues
to return success based on the read loop result. This matches existing
and expected semantics while avoiding a pointless write and any error masking.

Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28879)
crypto/asn1/asn_mime.c