> From: owner-openssl-us...@openssl.org On Behalf Of Kenneth Goldman > Sent: Tuesday, 05 October, 2010 18:32
> I'm getting a PEM_write_PUBKEY() segfault. This is existing code > that works with 0.9.8 with Windows or 1.0.0. with Linux, but fails > with 1.0.0. and Windows. What's my latent bug? Maybe http://www.openssl.org/support/faq.html#PROG2 ? I haven't tried 1.0.0 (at all) on Windows, but maybe the build defaults, or your build procedure or options, are different than 0.9.8. You could instead BIO_new_file(,"w") and PEM_write_bio_PUBKEY (and BIO_free or at least flush) and see if that works. That does all the I/O calls from within OpenSSL. Or more complexly, BIO_new(BIO_s_mem()) and PEM_write_bio and then get the data from the membuf and fwrite it; or even worse, i2d and manually PEMify (base64 and add labels) and fwrite. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org