Hi, Is there a reason why BIO_new_file() doesn't use the BIO_METHOD ctrl function pointer using BIO_C_SET_FILENAME to open a file? Many OpenSSL functions in the system call BIO_new_file() directly to create or open a file, there's no way for an application to hook into opening a file in all cases.
This is important for Windows developers who support UNICODE. Since Windows doesn't support UTF-8 encoding, it's necessary for us to hook in. Functions such as SSL_CTX_load_verify_locations() cannot use UNICODE paths. On-the-other-hand functions such as SSL_CTX_use_PrivateKey_file() can support UNICODE paths because these functions use the BIO_METHOD ctrl function pointer to open the file. I'm by no means an expert with the inner workings of OpenSSL, it just seems somewhat inconsistent to me. I'm probably missing the actual reason. Perhaps, a future version could be changed to use the method structure instead? -- Mark -- View this message in context: http://www.nabble.com/BIO_new_file%28%29-Usage-Doesn%27t-Use-BIO_METHOD%27s-ctrl-Function-Pointer-tp23397474p23397474.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org