[openssl/openssl] 999bce: SMIME_text() and SMIME_crlf_copy() small refactoring

0 views
Skip to first unread message

Joshua Rogers

unread,
Oct 17, 2025, 1:34:36 PM (3 days ago) Oct 17
to openssl...@openssl.org
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: 999bce720fcefb0109368f942d5170c1c98dd5a6
https://github.com/openssl/openssl/commit/999bce720fcefb0109368f942d5170c1c98dd5a6
Author: Joshua Rogers <MegaM...@users.noreply.github.com>
Date: 2025-10-17 (Fri, 17 Oct 2025)

Changed paths:
M crypto/asn1/asn_mime.c

Log Message:
-----------
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 <MegaM...@users.noreply.github.com>

Reviewed-by: Saša Nedvědický <sas...@openssl.org>
Reviewed-by: Matt Caswell <ma...@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28879)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications
Reply all
Reply to author
Forward
0 new messages