From 0f749191d1a6e69d67711b72f52fc127881f07a6 Mon Sep 17 00:00:00 2001 From: wicher Date: Sun, 26 Apr 2015 13:06:34 +0200 Subject: [PATCH 1/2] Try OpenSSL first --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 006b5b1..8d1300c 100644 --- a/Makefile +++ b/Makefile @@ -46,9 +46,9 @@ OPTFLAGS += -DSO_REUSEPORT # END system dependant block -SSL_LIBS := $(shell pkg-config --libs libssl 2>/dev/null) -ifeq ($(SSL_LIBS),) SSL_LIBS := $(shell pkg-config --libs openssl 2>/dev/null) +ifeq ($(SSL_LIBS),) +SSL_LIBS := $(shell pkg-config --libs libssl 2>/dev/null) endif ifeq ($(SSL_LIBS),) SSL_LIBS := -lssl -lcrypto From 2a26224b5ff103d2b8e2ff7be56e616d1ecde1f4 Mon Sep 17 00:00:00 2001 From: wicher Date: Sun, 26 Apr 2015 13:07:13 +0200 Subject: [PATCH 2/2] Allow TLS --- ptstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptstream.c b/ptstream.c index 4c87c80..6d55137 100644 --- a/ptstream.c +++ b/ptstream.c @@ -151,7 +151,7 @@ int stream_enable_ssl(PTSTREAM *pts) { /* Initialise the connection */ SSLeay_add_ssl_algorithms(); - meth = SSLv3_client_method(); + meth = SSLv23_client_method(); SSL_load_error_strings(); ctx = SSL_CTX_new (meth);