SSL_library_init();
SSL_load_error_strings ();
- ctx = SSL_CTX_new (SSLv3_client_method ());
-+ ctx = SSL_CTX_new (SSLv23_client_method ());
++ ctx = SSL_CTX_new (TLS_client_method ());
SSL_CTX_set_options(ctx,SSL_OP_ALL|SSL_OP_NO_SSLv2);
SSL_CTX_load_verify_locations(ctx,certs,NULL);
if(key)