--- a/ptstream.c
+++ b/ptstream.c
@@ -167,7 +167,7 @@
 	SSLeay_add_ssl_algorithms();
 	SSL_load_error_strings();
 
-	ctx = SSL_CTX_new (SSLv3_client_method());
+	ctx = SSL_CTX_new (SSLv23_client_method());
 	ssl = SSL_new (ctx);
 
 	if (args_info.verbose_flag) {
