summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/asn1/t_x509.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c
index 73a0491c00..1cef35dfca 100644
--- a/src/lib/libcrypto/asn1/t_x509.c
+++ b/src/lib/libcrypto/asn1/t_x509.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t_x509.c,v 1.32 2020/04/10 07:05:24 tb Exp $ */ 1/* $OpenBSD: t_x509.c,v 1.33 2021/07/06 11:26:25 schwarze Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -180,7 +180,7 @@ X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
180 if (BIO_printf(bp, " Issuer:%c", mlch) <= 0) 180 if (BIO_printf(bp, " Issuer:%c", mlch) <= 0)
181 goto err; 181 goto err;
182 if (X509_NAME_print_ex(bp, X509_get_issuer_name(x), 182 if (X509_NAME_print_ex(bp, X509_get_issuer_name(x),
183 nmindent, nmflags) < 0) 183 nmindent, nmflags) < (nmflags == X509_FLAG_COMPAT ? 1 : 0))
184 goto err; 184 goto err;
185 if (BIO_write(bp, "\n", 1) <= 0) 185 if (BIO_write(bp, "\n", 1) <= 0)
186 goto err; 186 goto err;
@@ -203,7 +203,7 @@ X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
203 if (BIO_printf(bp, " Subject:%c", mlch) <= 0) 203 if (BIO_printf(bp, " Subject:%c", mlch) <= 0)
204 goto err; 204 goto err;
205 if (X509_NAME_print_ex(bp, X509_get_subject_name(x), 205 if (X509_NAME_print_ex(bp, X509_get_subject_name(x),
206 nmindent, nmflags) < 0) 206 nmindent, nmflags) < (nmflags == X509_FLAG_COMPAT ? 1 : 0))
207 goto err; 207 goto err;
208 if (BIO_write(bp, "\n", 1) <= 0) 208 if (BIO_write(bp, "\n", 1) <= 0)
209 goto err; 209 goto err;