Hi,

This patch enables https uri handling in mpd.

Sincerely,
Ales Guzik.

-- 
 Ales Guzik 
 skype: ales-guzik
 tel: +375 29 5751103
From b20c0c2986fe1388e3f3862fb9673a09b38d4dc7 Mon Sep 17 00:00:00 2001
From: Ales Guzik <m...@aguzik.net>
Date: Tue, 3 Sep 2013 14:07:33 +0300
Subject: [PATCH] input/curl: enable https

---
 src/input/CurlInputPlugin.cxx | 3 ++-
 src/ls.cxx                    | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx
index c5f524b..5faa024 100644
--- a/src/input/CurlInputPlugin.cxx
+++ b/src/input/CurlInputPlugin.cxx
@@ -1093,7 +1093,8 @@ static struct input_stream *
 input_curl_open(const char *url, Mutex &mutex, Cond &cond,
 		GError **error_r)
 {
-	if (strncmp(url, "http://";, 7) != 0)
+	if ((strncmp(url, "http://";,  7) != 0) &&
+	    (strncmp(url, "https://";, 8) != 0))
 		return NULL;
 
 	struct input_curl *c = new input_curl(url, mutex, cond);
diff --git a/src/ls.cxx b/src/ls.cxx
index 9a74f88..0623764 100644
--- a/src/ls.cxx
+++ b/src/ls.cxx
@@ -36,6 +36,7 @@
 static const char *remoteUrlPrefixes[] = {
 #if defined(ENABLE_CURL)
 	"http://";,
+	"https://";,
 #endif
 #ifdef ENABLE_MMS
 	"mms://",
-- 
1.8.4

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to