[openssl-dev] [openssl.org #3964] Fix OPENSSL_NO_STDIO build

Woodhouse, David via RT rt at openssl.org
Wed Sep 30 06:24:18 UTC 2015


On Wed, 2015-09-30 at 02:01 +0000, Rich Salz via RT wrote:
> We fixed this in a slightly different way. We made BIO_new_file and BIO_s_file
> return an alternate implementation that returns run-time failures. Almost all
> of the OpenSSL code uses the BIO object, so we didn't have to remove that. We
> did #ifdef out any routine that had a "FILE*" param or local variable.
> --
> Rich Salz, OpenSSL dev team; rsalz at openssl.org

If things like BIO_new_file() were inline, or macros, then the compiler
could *see* that they'd return NULL. And lots of code in the *calling*
functions (basically everything but the error path) could be elided
from the compiled result...

-- 
                  Sent with Evolution's ActiveSync support.

David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation






-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3437 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20150930/6781c8ee/attachment.bin>


More information about the openssl-dev mailing list