[openssl.org #147] [PATCH] The function print_name in apps/apps.c truncates X509_NAM Es that are longer than 255 characters

2002-07-18 Thread Richard Levitte via RT
Fixed by letting X509_NAME_oneline() allocate the string. This ticket is now resolved. -- Richard Levitte [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org Development Mailing List

Re: [openssl.org #147] [PATCH] The function print_name in apps/apps.c truncates X509_NAM Es that are longer than 255 characters

2002-07-16 Thread Ben Laurie
[EMAIL PROTECTED] wrote: Thanks for the tip. Now, how do we get this fix into an official codebase? I have a patch queued that fixes this. Cheers, Ben. Yuval -Original Message- From: Harald Koch [mailto:[EMAIL PROTECTED]] Sent: Mon, July 15, 2002 17:33 To: [EMAIL PROTECTED]

Re: [openssl.org #147] [PATCH] The function print_name in apps/apps.c truncates X509_NAM Es that are longer than 255 characters

2002-07-15 Thread Yuval Pemper
After further thought, this is a simpler solution: diff -ur openssl-engine-0.9.6d/apps/apps.c openssl-engine-0.9.6d-patch/apps/apps.c --- openssl-engine-0.9.6d/apps/apps.cSun Sep 17 23:37:16 2000 +++ openssl-engine-0.9.6d-patch/apps/apps.cMon Jul 15 12:18:48 2002 @@ -757,22 +757,34 @@

Re: [openssl.org #147] [PATCH] The function print_name in apps/apps.c truncates X509_NAM Es that are longer than 255 characters

2002-07-15 Thread Yuval Pemper via RT
After further thought, this is a simpler solution: diff -ur openssl-engine-0.9.6d/apps/apps.c openssl-engine-0.9.6d-patch/apps/apps.c --- openssl-engine-0.9.6d/apps/apps.cSun Sep 17 23:37:16 2000 +++ openssl-engine-0.9.6d-patch/apps/apps.cMon Jul 15 12:18:48 2002 @@ -757,22 +757,34 @@

Re: [openssl.org #147] [PATCH] The function print_name in apps/apps.c truncates X509_NAM Es that are longer than 255 characters

2002-07-15 Thread Yuval Pemper
Another problem with my code: the buffer I allocated wasn't freed... Thanks to Peter Sylvester for pointing this out. I also moved the allocation of the buffer to where it's actually used. Yuval diff -ur openssl-engine-0.9.6d/apps/apps.c openssl-engine-0.9.6d-patch/apps/apps.c ---

Re: [openssl.org #147] [PATCH] The function print_name in apps/apps.c truncates X509_NAM Es that are longer than 255 characters

2002-07-15 Thread Yuval Pemper via RT
Another problem with my code: the buffer I allocated wasn't freed... Thanks to Peter Sylvester for pointing this out. I also moved the allocation of the buffer to where it's actually used. Yuval diff -ur openssl-engine-0.9.6d/apps/apps.c openssl-engine-0.9.6d-patch/apps/apps.c ---

Re: [openssl.org #147] [PATCH] The function print_name in apps/apps.c truncates X509_NAM Es that are longer than 255 characters

2002-07-15 Thread Peter Sylvester
Another problem with my code: the buffer I allocated wasn't freed... Thanks to Peter Sylvester for pointing this out. I also moved the allocation of the buffer to where it's actually used. Well, to be complete, the code should also test for the results of alloc and realloc. On the other

Re: [openssl.org #147] [PATCH] The function print_name in apps/apps.c truncates X509_NAM Es that are longer than 255 characters

2002-07-15 Thread Harald Koch
Of all the gin joints in all the towns in all the world, Yuval Pemper had to walk into mine and say: Another problem with my code: the buffer I allocated wasn't freed... Thanks to Peter Sylvester for pointing this out. I also moved the allocation of the buffer to where it's actually used.

RE: [openssl.org #147] [PATCH] The function print_name in apps/apps.c truncates X509_NAM Es that are longer than 255 characters

2002-07-15 Thread YuvalP
Thanks for the tip. Now, how do we get this fix into an official codebase? Yuval -Original Message- From: Harald Koch [mailto:[EMAIL PROTECTED]] Sent: Mon, July 15, 2002 17:33 To: [EMAIL PROTECTED] Subject: Re: [openssl.org #147] [PATCH] The function print_name in apps/apps.c truncates