curltlssink: set correct level of SSL for the transfer
authorPatricia Muscalu <patricia@axis.com>
Fri, 18 Jan 2013 13:55:40 +0000 (14:55 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 22 Jan 2013 10:55:14 +0000 (10:55 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=692010

ext/curl/gstcurltlssink.c

index 146678c..a979d13 100644 (file)
@@ -236,9 +236,8 @@ gst_curl_tls_sink_set_options_unlocked (GstCurlBaseSink * bcsink)
 {
   GstCurlTlsSink *sink = GST_CURL_TLS_SINK (bcsink);
 
-  if (!g_str_has_prefix (bcsink->url, "http")) {
-    curl_easy_setopt (bcsink->curl, CURLOPT_USE_SSL, 1L);
-  }
+  if (!g_str_has_prefix (bcsink->url, "http"))
+    curl_easy_setopt (bcsink->curl, CURLOPT_USE_SSL, CURLUSESSL_ALL);
 
   /* crypto engine */
   if ((g_strcmp0 (sink->crypto_engine, "auto") == 0) ||