mirror of
https://github.com/moparisthebest/spdylay
synced 2024-08-13 17:03:54 -04:00
spdycat: Use TLSv1_client_method
Jetty refuses connection if SSLv23_client_method is used.
This commit is contained in:
parent
39a2e74392
commit
3fc0e4dd6b
@ -448,7 +448,7 @@ int communicate(const std::string& host, uint16_t port,
|
||||
return -1;
|
||||
}
|
||||
SSL_CTX *ssl_ctx;
|
||||
ssl_ctx = SSL_CTX_new(SSLv23_client_method());
|
||||
ssl_ctx = SSL_CTX_new(TLSv1_client_method());
|
||||
if(!ssl_ctx) {
|
||||
std::cerr << ERR_error_string(ERR_get_error(), 0) << std::endl;
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user