diff options
author | Damian Hobson-Garcia <dhobsong@igel.co.jp> | 2022-12-22 16:36:05 -0500 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-10-26 15:50:13 +0100 |
commit | af3140e79167365852d8f4aa2c31dc19a8c97c66 (patch) | |
tree | f1532466016b503cea97d07e65be20a11cd9a149 /crypto | |
parent | 6f4da170567552d3428e22b508c0674009c56cad (diff) |
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)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509/t_req.c | 2 | ||||
-rw-r--r-- | crypto/x509/t_x509.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/t_req.c b/crypto/x509/t_req.c index 095c165100..f9cbbecd36 100644 --- a/crypto/x509/t_req.c +++ b/crypto/x509/t_req.c @@ -49,7 +49,7 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, nmindent = 12; } - if (nmflags == X509_FLAG_COMPAT) + if (nmflags == XN_FLAG_COMPAT) nmindent = 16; if (!(cflag & X509_FLAG_NO_HEADER)) { diff --git a/crypto/x509/t_x509.c b/crypto/x509/t_x509.c index 95ee5f519f..8f7ea53b3e 100644 --- a/crypto/x509/t_x509.c +++ b/crypto/x509/t_x509.c @@ -60,7 +60,7 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, nmindent = 12; } - if (nmflags == X509_FLAG_COMPAT) { + if (nmflags == XN_FLAG_COMPAT) { nmindent = 16; printok = 1; } |