I am loading list of trusted CAs to client program. If it is not successful
I want to print out errors simply like this:


/* Visual C++ 6.0, OpenSSL 9.6.0 */

if (! SSL_CTX_load_verify_locations(m_pSSL_Context, "cacert.pe_", NULL)) {
    ERR_print_errors_fp(stderr);
}

When file can't be found, ERR_print_errors_fp(stderr) crashes:
First-chance exception in test_com.exe (NTDLL.DLL): 0xC0000005: Access
Violation.

In other cases this way of printing errors works fine.


--
Kamil

PS: what does the function SSL_CTX_set_default_verify_paths(SSL_CTX *)  as I
can see it in s_client.c??

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to