]> git.ipfire.org Git - thirdparty/openssl.git/commit
RT3479: Add UTF8 support to BIO_read_filename()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 9 Sep 2015 19:49:01 +0000 (15:49 -0400)
committerRich Salz <rsalz@openssl.org>
Mon, 21 Sep 2015 21:33:06 +0000 (17:33 -0400)
commit21d8f2448528346f6510ed329f53bb4ff93d00ba
tree7d6b5d91f9787362bb6ffa4c494391e406607fb9
parentf9394bd7a053aa5ede7722e93b9351f8d9a800e7
RT3479: Add UTF8 support to BIO_read_filename()

If we use BIO_new_file(), on Windows it'll jump through hoops to work
around their unusual charset/Unicode handling. it'll convert a UTF-8
filename to UCS-16LE and attempt to use _wfopen().

If you use BIO_read_filename(), it doesn't do this. Shouldn't it be
consistent?

It would certainly be nice if SSL_use_certificate_chain_file() worked.

Also made BIO_C_SET_FILENAME work (rsalz)

Signed-off-by: Rich Salz <rsalz@akamai.com>
Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit ff03599a2f518dbdf13bca0bb0208e431b892fe9)
crypto/bio/bss_file.c