Hello, I have a function my_initialize( ) which initialize a lot of thing before doing my_connect( ), my_accept( ), etc.
In my_initialize( ), I call : - SSL_library_init(); - SSL_load_error_strings(); In my_connect( ), I set handshake: - meth = TLSv1_method( ); - ctx = SSL_CTX_new(meth); - SSL_CTX_set_cipher_list( ) - SSL_CTX_use_certificate_file( ) - ... - SSL_connect( ) now, I have to load certificate in my_initialize( ) and not in my_connect( ). How must I tell SSL_connect ( ) that the certificate is already loaded in my_initialize( ) and it must use this certificate to process handshake ? Thanks.