I have this problem of segmention fault :

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 8321)]
0x4003f866 in SSL_CTX_load_verify_locations () from /usr/lib/libssl.so.0

Here is the code :

#define CAFILE "/home/kenzo/prova/provola/rsa/CA/cacert.pem"
#define CADIR "/home/kenzo/prova/provola/rsa/CA/certs"
#define CERTFILE "/home/kenzo/prova/provola/rsa/CA/newcert.pem"

SSL_CTX *setup_client_ctx (void)
SSL_CTX *ctx;

//SSL_CTX *ctx = SSL_CTX_new( NULL);

ctx = SSL_CTX_new(SSLv23_method( ));

if (SSL_CTX_load_verify_locations(ctx, CAFILE, 0) != 1)
error("Error loading CA file and/or directory");

__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org