mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
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)
This commit is contained in:
parent
ef9d8f2f1f
commit
da2dd3b51d
@ -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)) {
|
||||
|
@ -65,7 +65,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user