curltlssink: set correct level of SSL for the transfer

https://bugzilla.gnome.org/show_bug.cgi?id=692010
This commit is contained in:
Patricia Muscalu 2013-01-18 14:55:40 +01:00 committed by Tim-Philipp Müller
parent 93fbcfda23
commit 4202eeff7d

View file

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