aboutsummaryrefslogtreecommitdiff
path: root/crypto/x509/x_name.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2023-02-07 17:05:11 +0000
committerEnji Cooper <ngie@FreeBSD.org>2023-03-01 03:28:48 +0000
commit3c320f4e5ee3d575d48eee7edddbafa059bce3c9 (patch)
tree27409bf5678b6d20fc3cee7dd98bd6539ab3314d /crypto/x509/x_name.c
parentaba33b3659256dde6e895b52bcff90550f77d49f (diff)
Diffstat (limited to 'crypto/x509/x_name.c')
-rw-r--r--crypto/x509/x_name.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/crypto/x509/x_name.c b/crypto/x509/x_name.c
index 59ac6895bc26..dc4a494fb543 100644
--- a/crypto/x509/x_name.c
+++ b/crypto/x509/x_name.c
@@ -1,5 +1,5 @@
/*
- * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -493,9 +493,7 @@ int X509_NAME_set(X509_NAME **xn, X509_NAME *name)
int X509_NAME_print(BIO *bp, const X509_NAME *name, int obase)
{
char *s, *c, *b;
- int l, i;
-
- l = 80 - 2 - obase;
+ int i;
b = X509_NAME_oneline(name, NULL, 0);
if (!b)
@@ -521,12 +519,10 @@ int X509_NAME_print(BIO *bp, const X509_NAME *name, int obase)
if (BIO_write(bp, ", ", 2) != 2)
goto err;
}
- l--;
}
if (*s == '\0')
break;
s++;
- l--;
}
OPENSSL_free(b);