projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
90baf2a
)
Allow subjects with more than 255 characters to be properly printed.
author
Richard Levitte
<levitte@openssl.org>
Thu, 18 Jul 2002 17:59:38 +0000
(17:59 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 18 Jul 2002 17:59:38 +0000
(17:59 +0000)
PR: 147
apps/apps.c
patch
|
blob
|
history
diff --git
a/apps/apps.c
b/apps/apps.c
index 40faa02f9076f79822662f599d0ebff34c967157..a302119d7f0250079a4bc8508b006aad01c6394b 100644
(file)
--- a/
apps/apps.c
+++ b/
apps/apps.c
@@
-1217,7
+1217,7
@@
static int set_table_opts(unsigned long *flags, const char *arg, const NAME_EX_T
void print_name(BIO *out, char *title, X509_NAME *nm, unsigned long lflags)
{
void print_name(BIO *out, char *title, X509_NAME *nm, unsigned long lflags)
{
- char
buf[256]
;
+ char
*buf
;
char mline = 0;
int indent = 0;
if(title) BIO_puts(out, title);
char mline = 0;
int indent = 0;
if(title) BIO_puts(out, title);
@@
-1226,9
+1226,10
@@
void print_name(BIO *out, char *title, X509_NAME *nm, unsigned long lflags)
indent = 4;
}
if(lflags == XN_FLAG_COMPAT) {
indent = 4;
}
if(lflags == XN_FLAG_COMPAT) {
-
X509_NAME_oneline(nm,buf,256
);
- BIO_puts(out,buf);
+
buf = X509_NAME_oneline(nm, 0, 0
);
+ BIO_puts(out,
buf);
BIO_puts(out, "\n");
BIO_puts(out, "\n");
+ OPENSSL_free(buf);
} else {
if(mline) BIO_puts(out, "\n");
X509_NAME_print_ex(out, nm, indent, lflags);
} else {
if(mline) BIO_puts(out, "\n");
X509_NAME_print_ex(out, nm, indent, lflags);