On Thu, Sep 09, 2004, Smith Baylor wrote: > Changed code to: > > bio = BIO_new(BIO_f_base64()); > BIO_push(bio, mbio); > int bytes_stored = i2d_PKCS12_bio(bio, p12); > BIO_flush(bio); > > No effect still. I was also searching the archives and found this: > http://www.mail-archive.com/[EMAIL PROTECTED]/msg36055.html > This person was seeing only 9 bytes out of expected 13. I could not > see a resolution to the above problem and I am leading to believe that > my problem could be very similar to his. >
Ah I can see your problem. "bytes_stored" tells you the number of bytes the i2d_PKCS12_bio() has written not the amount of data in the memory BIO. The return value of BIO_get_mem_data() gives that. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]