x509_print_ex:Use correct constant for nmflag comparison
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Thu, 22 Dec 2022 21:36:05 +0000 (16:36 -0500)
committerMatt Caswell <matt@openssl.org>
Thu, 26 Oct 2023 14:48:00 +0000 (15:48 +0100)
commitda2dd3b51ddd69aae0fd840c0d23afa954c24ded
tree98ed3969750efb670bbd4d400711027373cbf4f6
parentef9d8f2f1fd6d0f66184457bd97ab51ce6092745
x509_print_ex:Use correct constant for nmflag comparison

The X509_FLAG_COMPAT constant is defined as a value of the
X509_print_ex() cflags argument, and so it should not be used
to compare against values for use with X509_NAME_print flags.
Use XN_FLAG_COMPAT, which has the same value, instead.

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