Hi, I've been working with the BIOs again and I was thinking: wouldn't having a BIO_FP_BINARY flag fix this problem? Right now, OpenSSL always calls setmode but wouldn't it be better if it only changed the FILE*'s original mode when specified? Or would this break something else?...
--Steve > Type: REQ > OS: WinNT > Version: 0.97c > > Brief: A text mode FILE* will result in a binary BIO with BIO_set_fp. > > Descr: This seems to make sense since BIO_set_fp also takes in text mode > flags along with the FILE*, but on the PEM_write_xx FILE* fns, there is no > way to set the text flag when passing in the FILE*. This has led to garbage > (bad newlines) certificates being generated under Win2K with a custom > certificate generation utility implemented with OpenSSL. > > If the generated certs aren't used by a program that tries UNIX and MSDOS > newlines, this basically forces the developer to use the BIO routines > instead, making the write routines with FILE* useless. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
