mirror of
https://github.com/openssl/openssl.git
synced 2024-11-23 10:03:32 +08:00
x509_print_ex: Remove unused setting when XN_FLAG_COMPAT is set
Calling X509_NAME_print_ex with XN_FLAG_COMPAT falls back to calling X509_NAME_print(). The obase parameter to X509_NAME_print() is not used, so setting it to a different value has no effect. 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
2b5e028a2f
commit
2126ca3dba
@ -49,10 +49,8 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags,
|
||||
nmindent = 12;
|
||||
}
|
||||
|
||||
if (nmflags == XN_FLAG_COMPAT) {
|
||||
nmindent = 16;
|
||||
if (nmflags == XN_FLAG_COMPAT)
|
||||
printok = 1;
|
||||
}
|
||||
|
||||
if (!(cflag & X509_FLAG_NO_HEADER)) {
|
||||
if (BIO_write(bp, "Certificate Request:\n", 21) <= 0)
|
||||
|
@ -65,10 +65,8 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags,
|
||||
nmindent = 12;
|
||||
}
|
||||
|
||||
if (nmflags == XN_FLAG_COMPAT) {
|
||||
nmindent = 16;
|
||||
if (nmflags == XN_FLAG_COMPAT)
|
||||
printok = 1;
|
||||
}
|
||||
|
||||
if (!(cflag & X509_FLAG_NO_HEADER)) {
|
||||
if (BIO_write(bp, "Certificate:\n", 13) <= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user