I believe your understanding is incorrect. i2d_X509() should, and does, return the length of the result. i2d_X509_fp() and i2d_X509_bio() are different in that respect.
This ticket is now resolved. [[EMAIL PROTECTED] - Fri Nov 1 08:53:47 2002]: > Hi, > > I'm running openssl-0.9.6g (on WinXP, compiled with VC6 and masm). > > As I understands it, the i2d_X509_fp function should return the cert > length > (in bytes) upon success. It doesn't, 1 is always returned. When I > stepped > into the code, I end up in a function called ASN1_i2d_bio (a_i2d- > fp.c). This > function always returns 1 upon success. I think it should return 'i', > from > last BIO_write() call. > > > Thanks, > Jonas Sundgren > > PS. Please hide my email address if this message is published > somewhere--I > don't want spam mails! > -- Richard Levitte ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]