]> git.ipfire.org Git - thirdparty/openssl.git/commit
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:50:13 +0000 (15:50 +0100)
commitaf3140e79167365852d8f4aa2c31dc19a8c97c66
treef1532466016b503cea97d07e65be20a11cd9a149
parent6f4da170567552d3428e22b508c0674009c56cad
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)

(cherry picked from commit da2dd3b51ddd69aae0fd840c0d23afa954c24ded)
crypto/x509/t_req.c
crypto/x509/t_x509.c