Fix X509_REQ_print_ex bug
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Thu, 22 Dec 2022 22:04:39 +0000 (17:04 -0500)
committerMatt Caswell <matt@openssl.org>
Thu, 26 Oct 2023 14:49:58 +0000 (15:49 +0100)
commitb01e6bcdc2e91941ac9d809a0d5e1b519a79ebcf
tree591637bf28470aa30db924933edb3f7a55071a24
parent0e3872ac7ecfcbec5c37277fb000544ca6c0579a
Fix X509_REQ_print_ex bug

Similar to the bug fixed in 02db7354fe7 (Fix bug in X509_print_ex).
The error return value from X509_NAME_print_ex() is different
depending on whether the flags are XN_FLAG_COMPAT or not.
Apply a similar fix to what was done for X509_print_ex here as well.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/19963)

(cherry picked from commit 2b5e028a2f70de216458a5140bcf4ec3d9236eeb)
crypto/x509/t_req.c