aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-http-stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-http-stream.c')
-rw-r--r--camel/camel-http-stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/camel-http-stream.c b/camel/camel-http-stream.c
index 44c7601e82..5c226cd26c 100644
--- a/camel/camel-http-stream.c
+++ b/camel/camel-http-stream.c
@@ -167,6 +167,7 @@ camel_http_stream_new (CamelHttpMethod method, CamelService *service, CamelURL *
return CAMEL_STREAM (stream);
}
+#define SSL_FLAGS (CAMEL_TCP_STREAM_SSL_ENABLE_SSL2 | CAMEL_TCP_STREAM_SSL_ENABLE_SSL3)
static CamelStream *
http_connect (CamelService *service, CamelURL *url)
@@ -177,7 +178,7 @@ http_connect (CamelService *service, CamelURL *url)
if (!strcasecmp (url->protocol, "https")) {
#ifdef HAVE_SSL
- stream = camel_tcp_stream_ssl_new (service, url->host);
+ stream = camel_tcp_stream_ssl_new (service, url->host, SSL_FLAGS);
#endif
} else {
stream = camel_tcp_stream_raw_new ();