[openssl-dev] [openssl.org #3964] Fix OPENSSL_NO_STDIO build
Woodhouse, David via RT
rt at openssl.org
Wed Jul 29 11:59:54 UTC 2015
Please pull the following fixes from
git://git.infradead.org/users/dwmw2/openssl-nostdio.git
These are browsable in gitweb at
http://git.infradead.org/users/dwmw2/openssl-nostdio.git
This removes a number of functions which require file access, which is not possible when OPENSSL_NO_STDIO is set. In some cases the functions were already missing, but the declarations were still present in the header files (and causing compilation errors if FILE was not defined). In other cases the declarations were correctly made conditional but the actual functions still existed.
A couple of places use the BUFSIZ macro for a temporary buffer, and needed an alternative.
The unused OPENSSL_stderr() function that does nothing but return stderr is removed entirely.
OPENSSL_showfatal() now does nothing for the no-stdio build. It might be possible to (re)introduce OPENSSL_std{in,out,err} as BIOs. Even platforms which have no file access and no true stdio will often have some form of console output, and BIO_printf() to that could certainly work for things like OPENSSL_showfatal(). That's left for a later date.
The main thing that I'm *not* happy with is including <stdio.h> to make sscanf() work in OPENSSL_cpuid_setup(). That's at the very end of the tree for a reason.
David Woodhouse (17):
Eliminate compiler warning for unused send_fp_chars() with no-stdio
Disable GOST engine when no-stdio
Disable TEST_ENG_OPENSSL_PKEY with no-stdio
Eliminate compiler warning for unused do_pk8pkey_fp() with no-stdio
Eliminate SRP_VBASE_init() and supporting functions for no-stdio
Use OPENSSL_showfatal() in CRYPTO_destroy_dynlockid() to fix no-stdio
Disable X509_LOOKUP_hash_dir() with no-stdio
Add missing DECLARE_PEM_write_fp_const for no-stdio
Remove functions taking FILE * from header files for no-stdio
Disable file-based TS_CONF_* functions for no-stdio build
Disable file: values in pci_process_value() for no-stdio build
Add fallback definition of BUFSIZ for no-stdio build
Remove unviable conf functionality from no-stdio build
Remove file-based functionality from ssl/ for no-stdio build
Kill OPENSSL_stderr()
Make OPENSSL_showfatal do nothing with no-stdio
Include <stdio.h> for sscanf() even with no-stdio
--
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/20150729/58f7b473/attachment.bin>
-------------- next part --------------
_______________________________________________
openssl-bugs-mod mailing list
openssl-bugs-mod at openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod
More information about the openssl-dev
mailing list